-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
50 lines (46 loc) · 1.14 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
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:
image: alphabit_domserver:0.3
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: alphabit_judgehost:0.3
hostname: alphabit_judgehost0
environment:
- CONTAINER_TIMEZONE=Africa/Algiers
- JUDGEDAEMON_USERNAME=judgehost
- JUDGEDAEMON_PASSWORD=password
- DOMSERVER_BASEURL=http://domserver/
- DAEMON_ID=0
- WAIT_HOSTS=domserver:80
- WAIT_HOSTS_TIMEOUT=200
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
depends_on:
- domserver
privileged: true
volumes:
domjudge_mariadb: