mirror of
https://github.com/QingdaoU/JudgeServer.git
synced 2024-12-29 14:11:44 +00:00
27 lines
776 B
YAML
27 lines
776 B
YAML
version: "2"
|
|
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
|
|
volumes:
|
|
- $PWD/tests/test_case:/test_case:ro
|
|
- /data/log:/log
|
|
- $PWD/server:/code:ro
|
|
environment:
|
|
- service_discovery_url=http://127.0.0.1:8000/api/judge_server_heartbeat
|
|
- service_url=http://127.0.0.1:12358
|
|
- TOKEN=YOUR_TOKEN_HERE
|
|
ports:
|
|
- "0.0.0.0:12358:8080"
|