JudgeServer/docker-compose.example.yml
李扬 e27c662a66
add /dev/shm to tmpfs
to avoid python subprocess issues
2018-02-01 22:14:52 +08:00

28 lines
800 B
YAML

version: "3"
services:
judge_server:
image: registry.cn-hangzhou.aliyuncs.com/onlinejudge/judge_server
read_only: true
cap_drop:
- SETPCAP
- MKNOD
- NET_BIND_SERVICE
- SYS_CHROOT
- SETFCAP
- FSETID
tmpfs:
- /tmp
- /judger_run:exec,mode=777
- /spj:exec,mode=777
- /dev/shm:mode=777
volumes:
- $PWD/tests/test_case:/test_case:ro
- $PWD/log:/log
# - $PWD/server:/code:ro
environment:
- BACKEND_URL=http://backend:8000/api/judge_server_heartbeat
- SERVICE_URL=http://judge-server:12358
- TOKEN=YOUR_TOKEN_HERE
ports:
- "0.0.0.0:12358:8080"