2017-12-06 03:50:15 +00:00
|
|
|
version: "3"
|
2016-10-09 16:00:54 +00:00
|
|
|
services:
|
|
|
|
judge_server:
|
2017-10-31 11:51:42 +00:00
|
|
|
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
|
|
|
|
volumes:
|
2017-10-31 11:51:42 +00:00
|
|
|
- $PWD/tests/test_case:/test_case:ro
|
2017-12-06 03:50:15 +00:00
|
|
|
- $PWD/log:/log
|
2017-12-21 16:39:14 +00:00
|
|
|
# - $PWD/server:/code:ro
|
2018-05-08 23:20:49 +00:00
|
|
|
- $PWD/run:/judger
|
2016-10-09 16:00:54 +00:00
|
|
|
environment:
|
2018-11-03 10:49:14 +00:00
|
|
|
- BACKEND_URL=http://backend:80/api/judge_server_heartbeat
|
2017-12-06 03:50:15 +00:00
|
|
|
- SERVICE_URL=http://judge-server:12358
|
2017-10-31 11:51:42 +00:00
|
|
|
- TOKEN=YOUR_TOKEN_HERE
|
2016-10-09 16:00:54 +00:00
|
|
|
ports:
|
2016-11-15 06:04:00 +00:00
|
|
|
- "0.0.0.0:12358:8080"
|