-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
136 lines (125 loc) · 3.56 KB
/
docker-compose.yml
File metadata and controls
136 lines (125 loc) · 3.56 KB
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
version: "3.8"
networks:
domjudge:
driver: bridge
volumes:
mariadb_data: {}
mariadb_backup: {}
services:
mariadb:
container_name: domjudge_mariadb
image: mariadb:10.8
networks:
- domjudge
ports:
- 33060:3306/tcp
volumes:
- mariadb_data:/var/lib/mysql
restart: unless-stopped
environment:
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD:?}
MARIADB_USER: domjudge
MARIADB_PASSWORD: ${DB_DOMJUDGE_PASSWORD:?}
MARIADB_DATABASE: domjudge
mariadb-backup:
container_name: domjudge_mariadb_backup
image: fradelg/mysql-cron-backup:1.8.1
networks:
- domjudge
volumes:
- mariadb_backup:/backup
restart: unless-stopped
environment:
MYSQL_HOST: mariadb
MYSQL_PORT: 3306
MYSQL_USER: root
MYSQL_PASS: ${DB_ROOT_PASSWORD:?}
CRON_TIME: 12 */6 * * *
MAX_BACKUPS: 12
INIT_BACKUP: 1
TZ: Europe/Vienna
domserver:
container_name: domjudge
image: incaseoftrouble/domtutor_domserver
networks:
- domjudge
ports:
- 8080:80/tcp
restart: unless-stopped
depends_on:
- mariadb
environment:
MYSQL_HOST: mariadb
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD:?}
MYSQL_USER: domjudge
MYSQL_PASSWORD: ${DB_DOMJUDGE_PASSWORD:?}
MYSQL_DATABASE: domjudge
CONTAINER_TIMEZONE: Europe/Vienna
DJ_DB_INSTALL_BARE: 1
labels:
traefik.enable: true
traefik.http.routers.domjudge.rule: Host(`some.host.tld`)
traefik.http.routers.domjudge.entrypoints: https
traefik.http.routers.domjudge.middlewares: https-headers@file
traefik.http.routers.domjudge.tls: true
traefik.http.routers.domjudge.tls.certresolver: letsencrypt
traefik.http.routers.domjudge_http.rule: Host(`some.host.tld`)
traefik.http.routers.domjudge_http.entrypoints: http
traefik.http.routers.domjudge_http.middlewares: redirect@file
traefik.http.routers.domjudge_http.service: noop@internal
traefik.http.services.domjudge.loadbalancer.server.port: 80
traefik.http.services.domjudge.loadbalancer.server.scheme: http
judgehost-1:
container_name: judgehost-1
hostname: judgedaemon-1
image: incaseoftrouble/domtutor_judgehost
networks:
- domjudge
privileged: True
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
restart: unless-stopped
depends_on:
- domserver
environment:
DAEMON_ID: 1
CONTAINER_TIMEZONE: Europe/Vienna
JUDGEDAEMON_USERNAME: judgehost
JUDGEDAEMON_PASSWORD: ${JUDGE_PASSWORD-}
DOMSERVER_BASEURL: http://domjudge/
judgehost-2:
container_name: judgehost-2
hostname: judgedaemon-2
image: incaseoftrouble/domtutor_judgehost
networks:
- domjudge
privileged: True
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
restart: unless-stopped
depends_on:
- domserver
environment:
DAEMON_ID: 2
CONTAINER_TIMEZONE: Europe/Vienna
JUDGEDAEMON_USERNAME: judgehost
JUDGEDAEMON_PASSWORD: ${JUDGE_PASSWORD-}
DOMSERVER_BASEURL: http://domjudge/
judgehost-3:
container_name: judgehost-3
hostname: judgedaemon-3
image: incaseoftrouble/domtutor_judgehost
networks:
- domjudge
privileged: True
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
restart: unless-stopped
depends_on:
- domserver
environment:
DAEMON_ID: 3
CONTAINER_TIMEZONE: Europe/Vienna
JUDGEDAEMON_USERNAME: judgehost
JUDGEDAEMON_PASSWORD: ${JUDGE_PASSWORD-}
DOMSERVER_BASEURL: http://domjudge/