-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
101 lines (95 loc) · 2.33 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: "3"
services:
mariadb:
image: mariadb:10.4
environment:
- MYSQL_ROOT_PASSWORD=rootpw
- MYSQL_USER=domjudge
- MYSQL_PASSWORD=djpw
- MYSQL_DATABASE=domjudge
volumes:
- domjudge_mariadb:/var/lib/mysql
domserver:
build: domserver/.
image: gcpc_domserver
environment:
- CONTAINER_TIMEZONE=Africa/Algiers
- MYSQL_HOST=mariadb
- MYSQL_ROOT_PASSWORD=rootpw
- MYSQL_USER=domjudge
- MYSQL_PASSWORD=djpw
- MYSQL_DATABASE=domjudge
- WAIT_HOSTS=mariadb:3306
- WAIT_HOSTS_TIMEOUT=200
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
ports:
- 80:80
depends_on:
- mariadb
judgehost:
image: gcpc_judgehost:7.1.1
hostname: gcpc_judgehost
environment:
- CONTAINER_TIMEZONE=Africa/Algiers
- JUDGEDAEMON_PASSWORD=DFONdha0SpGBTiQw
- DAEMON_ID=0
- WAIT_HOSTS=domserver:80
- WAIT_HOSTS_TIMEOUT=200
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
links:
- domserver:domserver
depends_on:
- domserver
privileged: true
judgehost_1:
image: gcpc_judgehost:7.1.1
hostname: gcpc_judgehost_1
environment:
- CONTAINER_TIMEZONE=Africa/Algiers
- JUDGEDAEMON_PASSWORD=DFONdha0SpGBTiQw
- DAEMON_ID=1
- WAIT_HOSTS=domserver:80
- WAIT_HOSTS_TIMEOUT=200
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
links:
- domserver:domserver
depends_on:
- domserver
privileged: true
judgehost_2:
image: gcpc_judgehost:7.1.1
hostname: gcpc_judgehost_2
environment:
- CONTAINER_TIMEZONE=Africa/Algiers
- JUDGEDAEMON_PASSWORD=DFONdha0SpGBTiQw
- DAEMON_ID=1
- WAIT_HOSTS=domserver:80
- WAIT_HOSTS_TIMEOUT=200
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
links:
- domserver:domserver
depends_on:
- domserver
privileged: true
judgehost_4:
image: gcpc_judgehost:7.1.1
hostname: gcpc_judgehost_4
environment:
- CONTAINER_TIMEZONE=Africa/Algiers
- JUDGEDAEMON_PASSWORD=DFONdha0SpGBTiQw
- DAEMON_ID=3
- WAIT_HOSTS=domserver:80
- WAIT_HOSTS_TIMEOUT=200
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
links:
- domserver:domserver
depends_on:
- domserver
privileged: true
volumes:
domjudge_mariadb: