-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
95 lines (90 loc) · 3.25 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
version: '3'
services:
nginx:
container_name: 'nginx'
image: 'jwilder/nginx-proxy'
restart: 'always'
ports:
- '80:80'
- '443:443'
volumes:
- '/var/run/docker.sock:/tmp/docker.sock:ro'
- './nginx/html/:/usr/share/nginx/html/'
- './nginx/conf.d/:/etc/nginx/conf.d/'
- './nginx/certs/:/etc/nginx/certs/:ro'
- './nginx/vhost.d/:/etc/nginx/vhost.d/'
- './nginx/dhparam/:/etc/nginx/dhparam/'
- './domjudge/nginx-domjudge.conf:/etc/nginx/conf.d/domjudge.conf'
environment:
ENABLE_IPV6: 'true'
DEFAULT_HOST: 'domjudge.thalia.nu'
letsencrypt:
image: 'jrcs/letsencrypt-nginx-proxy-companion'
restart: 'always'
depends_on:
- 'nginx'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock:ro'
- './nginx/html/:/usr/share/nginx/html/'
- './nginx/conf.d/:/etc/nginx/conf.d/'
- './nginx/vhost.d/:/etc/nginx/vhost.d/'
- './nginx/dhparam/:/etc/nginx/dhparam/'
- './nginx/certs/:/etc/nginx/certs/'
- './domjudge/nginx-domjudge.conf:/etc/nginx/conf.d/domjudge.conf'
environment:
NGINX_PROXY_CONTAINER: 'nginx'
DEFAULT_EMAIL: '[email protected]'
domjudge:
build: ./domjudge
restart: always
links:
- "dj-mariadb:mariadb"
environment:
VIRTUAL_HOST: 'domjudge.thalia.nu,contest.thalia.nu'
LETSENCRYPT_HOST: 'domjudge.thalia.nu,contest.thalia.nu'
LETSENCRYPT_EMAIL: '[email protected]'
DJ_DB_INSTALL_BARE: '1'
TRUSTED_PROXIES: '172.18.0.0/24'
env_file:
- domjudge/domserver.env
- domjudge/database.env
volumes:
- './domjudge/domjudge-images/:/opt/domjudge/domserver/webapp/public/images/'
- './domjudge/custom-css/:/opt/domjudge/domserver/webapp/public/css/custom/'
- './domjudge/custom-js/:/opt/domjudge/domserver/webapp/public/js/custom/'
- './domjudge/logs/:/opt/domjudge/domserver/webapp/public/log'
dj-mariadb:
image: mariadb
restart: always
ports:
- '13306:3306'
env_file:
- domjudge/database.env
volumes:
- './domjudge/db_conf:/etc/mysql/conf.d'
cds:
image: 'ghcr.io/icpctools/cds:2.5.947'
restart: always
env_file:
- cds/cds.env
environment:
VIRTUAL_HOST: 'contestdata.thalia.nu'
VIRTUAL_PORT: 8080
LETSENCRYPT_HOST: 'contestdata.thalia.nu'
LETSENCRYPT_EMAIL: '[email protected]'
volumes:
- './cds/contest-data:/contest'
- './cds/present:/opt/wlp/usr/servers/cds/config/present'
- './cds/cdsConfig.xml:/opt/wlp/usr/servers/cds/config/cdsConfig.xml'
cups:
build: ./cups
restart: always
hostname: contest.thalia.nu
ports:
- '631:631'
volumes:
- './cups/cups-config/:/etc/cups/'
- './nginx/certs/:/etc/cups/ssl/'
- '/var/run/dbus:/var/run/dbus'
env_file:
- cups/cups.env