Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Commit 69e5e2f

Browse files
committed
Update
1 parent 72733f5 commit 69e5e2f

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

config-base/daemon.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"ServerUrl": "http://syzoj:5283/",
2+
"ServerUrl": "http://app:5283/",
33
"ServerUser": "hello",
44
"ServerToken": "123456",
55
"RabbitMQUrl": "amqp://rabbitmq/",

config-base/runner-shared.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"RabbitMQUrl": "amqp://rabbitmq/",
33
"TestData": "/opt/syzoj/data/uploads/testdata",
4-
"RedisUrl": "redis://redis:6379",
4+
"RedisUrl": "redis://redis-cache:6379",
55
"Priority": 1,
66
"DebugMessageDisplayLimit": 5000,
77
"OutputLimit": 104857600,

docker-compose.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ services:
5757
- syzojng
5858
volumes:
5959
- ./config:/opt/config
60-
- ./data/syzoj:/opt/syzoj/data
60+
- syzoj-data:/opt/syzoj/data
6161
command: ["node", "/opt/syzoj/app.js", "-c", "/opt/config/web.json"]
6262
working_dir: "/opt/syzoj"
63+
stop_grace_period: 1s
6364
judger:
6465
image: syzoj/syzoj:ng
6566
networks:
@@ -69,7 +70,7 @@ services:
6970
- syzoj-data:/opt/syzoj/data
7071
working_dir: "/opt/judge-v3"
7172
command: ["node", "/opt/judge-v3/lib/daemon/index.js", "-c", "/opt/config/daemon.json", "-v"]
72-
stop_signal: SIGKILL
73+
stop_grace_period: 1s
7374
runner:
7475
image: syzoj/syzoj:base
7576
networks:
@@ -83,6 +84,7 @@ services:
8384
working_dir: "/opt/judge-v3"
8485
command: ["node", "/opt/judge-v3/lib/runner/index.js", "-s", "/opt/config/runner-shared.json", "-i", "/opt/config/runner-instance.json", "-v"]
8586
privileged: true
87+
stop_grace_period: 1s
8688
nginx:
8789
image: nginx
8890
networks:

0 commit comments

Comments
 (0)