2016-10-09 16:00:54 +00:00
|
|
|
version: "2"
|
|
|
|
services:
|
|
|
|
judge_server:
|
2017-07-19 05:06:14 +00:00
|
|
|
image: registry.cn-hangzhou.aliyuncs.com/v-image/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
|
2016-10-13 14:20:30 +00:00
|
|
|
- /judger_run:exec,mode=777
|
|
|
|
- /spj:exec,mode=777
|
2016-10-09 16:00:54 +00:00
|
|
|
volumes:
|
2017-03-17 08:15:16 +00:00
|
|
|
- $PWD/tests/test_case:/test_case
|
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:
|
|
|
|
- service_discovery_url=https://virusdefender.net/service.php
|
2016-10-15 19:38:45 +00:00
|
|
|
- service_url=http://1.2.3.4:12358
|
2017-05-30 05:14:49 +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"
|