JudgeServer/docker-compose.example.yml

27 lines
767 B
YAML
Raw Normal View History

2016-10-09 16:00:54 +00:00
version: "2"
services:
judge_server:
image: registry.cn-hangzhou.aliyuncs.com/onlinejudge/judge_server
2016-10-09 16:00:54 +00:00
read_only: true
2016-10-15 19:38:45 +00:00
cap_drop:
- SETPCAP
- MKNOD
- NET_BIND_SERVICE
- SYS_CHROOT
- SETFCAP
- FSETID
2016-10-09 16:00:54 +00:00
tmpfs:
- /tmp
- /judger_run:exec,mode=777
- /spj:exec,mode=777
2016-10-09 16:00:54 +00:00
volumes:
- $PWD/tests/test_case:/test_case:ro
2016-10-09 16:00:54 +00:00
- /data/log:/log
2016-10-27 16:47:35 +00:00
- $PWD/server:/code:ro
2016-10-09 16:00:54 +00:00
environment:
2017-12-06 03:07:25 +00:00
- backend_url=http://backend:8000/api/judge_server_heartbeat
- service_url=http://judge-server:12358
- TOKEN=YOUR_TOKEN_HERE
2016-10-09 16:00:54 +00:00
ports:
- "0.0.0.0:12358:8080"