2017-12-06 11:50:15 +08:00
|
|
|
version: "3"
|
2016-10-10 00:00:54 +08:00
|
|
|
services:
|
|
|
|
judge_server:
|
2017-10-31 19:51:42 +08:00
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/onlinejudge/judge_server
|
2016-10-10 00:00:54 +08:00
|
|
|
read_only: true
|
2016-10-16 03:38:45 +08:00
|
|
|
cap_drop:
|
|
|
|
- SETPCAP
|
|
|
|
- MKNOD
|
|
|
|
- NET_BIND_SERVICE
|
|
|
|
- SYS_CHROOT
|
|
|
|
- SETFCAP
|
|
|
|
- FSETID
|
2016-10-10 00:00:54 +08:00
|
|
|
tmpfs:
|
|
|
|
- /tmp
|
2016-10-13 22:20:30 +08:00
|
|
|
- /judger_run:exec,mode=777
|
|
|
|
- /spj:exec,mode=777
|
2016-10-10 00:00:54 +08:00
|
|
|
volumes:
|
2017-10-31 19:51:42 +08:00
|
|
|
- $PWD/tests/test_case:/test_case:ro
|
2017-12-06 11:50:15 +08:00
|
|
|
- $PWD/log:/log
|
2016-10-28 00:47:35 +08:00
|
|
|
- $PWD/server:/code:ro
|
2016-10-10 00:00:54 +08:00
|
|
|
environment:
|
2017-12-06 11:50:15 +08:00
|
|
|
- BACKEND_URL=http://backend:8000/api/judge_server_heartbeat
|
|
|
|
- SERVICE_URL=http://judge-server:12358
|
2017-10-31 19:51:42 +08:00
|
|
|
- TOKEN=YOUR_TOKEN_HERE
|
2016-10-10 00:00:54 +08:00
|
|
|
ports:
|
2016-11-15 14:04:00 +08:00
|
|
|
- "0.0.0.0:12358:8080"
|