mirror of
https://github.com/QingdaoU/JudgeServer.git
synced 2024-12-28 21:31:43 +00:00
cbcc9cb313
token获取方式改为环境变量
27 lines
720 B
YAML
27 lines
720 B
YAML
version: "2"
|
|
services:
|
|
judge_server:
|
|
image: qduoj/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
|
|
- /data/log:/log
|
|
- $PWD/server:/code:ro
|
|
environment:
|
|
- service_discovery_url=https://virusdefender.net/service.php
|
|
- service_url=http://1.2.3.4:12358
|
|
- token=YOUR_TOKEN_HERE
|
|
ports:
|
|
- "0.0.0.0:12358:8080"
|