-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
191 lines (177 loc) · 4.34 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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
services:
reverse_proxy_docker:
image: docker.io/library/traefik:v2.10
command:
- --api.insecure=true
- --providers.file=true
- --providers.file.filename=/etc/traefik/rules.yaml
- --providers.file.watch=true
- --entrypoints.web.address=:80
ports:
- 80:80
- 8080:8080
volumes:
- './util/traefik/rules_docker.yaml:/etc/traefik/rules.yaml'
networks:
- klicker
extra_hosts:
- 'host.docker.internal:host-gateway'
reverse_proxy_macos:
image: docker.io/library/traefik:v2.10
command:
- --api.insecure=true
- --providers.file=true
- --providers.file.filename=/etc/traefik/rules.yaml
- --providers.file.watch=true
- --entrypoints.web.address=:80
ports:
- 80:80
- 8080:8080
volumes:
- './util/traefik/rules_docker.yaml:/etc/traefik/rules.yaml'
networks:
- klicker
reverse_proxy_wsl:
image: docker.io/library/traefik:v2.10
command:
- --api.insecure=true
- --providers.file=true
- --providers.file.filename=/etc/traefik/rules.yaml
- --providers.file.watch=true
- --entrypoints.web.address=:80
ports:
- 80:80
- 8080:8080
volumes:
- './util/traefik/rules_wsl.yaml:/etc/traefik/rules.yaml'
networks:
- klicker
auth:
profiles:
- full
image: ghcr.io/uzh-bf/klicker-uzh/auth:v3
environment:
APP_SECRET: abcd
DATABASE_URL: 'postgres://klicker:klicker@postgres:5432/main'
# EDUID_CLIENT_SECRET: ''
# TEAMS_WEBHOOK_URL: ''
ports:
- 3010:3000
networks:
- klicker
frontend_pwa:
profiles:
- full
image: ghcr.io/uzh-bf/klicker-uzh/frontend-pwa:v3
environment:
APP_SECRET: abcd
ports:
- 3001:3000
networks:
- klicker
frontend_manage:
profiles:
- full
image: ghcr.io/uzh-bf/klicker-uzh/frontend-manage:v3
ports:
- 3002:3000
networks:
- klicker
frontend_control:
profiles:
- full
image: ghcr.io/uzh-bf/klicker-uzh/frontend-control:v3
ports:
- 3003:3000
networks:
- klicker
backend:
profiles:
- full
image: ghcr.io/uzh-bf/klicker-uzh/backend-docker:v3
environment:
APP_SECRET: 'abcd'
COOKIE_DOMAIN: .klicker.com
CRON_TOKEN: 'abcd'
DATABASE_URL: 'postgres://klicker:klicker@postgres:5432/klicker'
NOTIFICATION_SUPPORT_MAIL: 'noone@klicker.com'
NOTIFICATION_URL: 'noone@klicker.com'
REDIS_CACHE_HOST: 'redis_cache'
REDIS_CACHE_PASS: ''
REDIS_CACHE_PORT: 6379
REDIS_HOST: 'redis_exec'
REDIS_PASS: ''
REDIS_PORT: 6379
# BLOB_STORAGE_ACCESS_KEY: ''
# BLOB_STORAGE_ACCOUNT_NAME: ''
# NOTIFICATION_SECRET: ''
# REDIS_CACHE_TLS: 'true'
# REDIS_TLS: 'true'
# TEAMS_WEBHOOK_URL: ''
# VAPID_PRIVATE_KEY: ''
# VAPID_PUBLIC_KEY: ''
ports:
- 3000:3000
networks:
- klicker
# main database
postgres:
image: docker.io/library/postgres:15
environment:
POSTGRES_USER: klicker
POSTGRES_PASSWORD: klicker
POSTGRES_DB: klicker-prod
ports:
- 5432:5432
networks:
- klicker
volumes:
- klicker_data:/var/lib/postgresql/data
- ./util/init.sql:/docker-entrypoint-initdb.d/init.sql
# diff database
postgres_diff:
image: docker.io/library/postgres:15
environment:
POSTGRES_USER: klicker
POSTGRES_PASSWORD: klicker
POSTGRES_DB: klicker-prod
ports:
- 5433:5432
networks:
- klicker
volumes:
- klicker_data_diff:/var/lib/postgresql/data
- ./util/init.sql:/docker-entrypoint-initdb.d/init.sql
# redis instance to support live quiz execution
redis_exec:
image: docker.io/library/redis:7
ports:
- 6379:6379
networks:
- klicker
volumes:
- redis_data:/data
# redis instance for page caching and rate limiting
redis_cache:
image: docker.io/library/redis:7
ports:
- 6380:6379
networks:
- klicker
# fake smtp server for catching email during development
mailhog:
image: docker.io/mailhog/mailhog:latest
ports:
- 1025:1025
- 8025:8025
networks:
- klicker
networks:
klicker:
driver: bridge
volumes:
klicker_data:
klicker_data_diff:
klicker_lti_data:
redis_data:
lti_data: