-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
323 lines (294 loc) · 8.09 KB
/
docker-compose.yaml
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
version: "3.7"
services:
#databases
setup:
container_name: setup
image: ghcr.io/gamify-it/test-data:latest
pull_policy: always
restart: on-failure
environment:
POSTGRES_SETUP: >
keycloak/default.sql
overworld/default.sql
chickenshock/default.sql
finitequiz/default.sql
crosswordpuzzle/default.sql
bugfinder/default.sql
keycloak-db:
container_name: keycloak-db
image: postgres:14-alpine
restart: always
expose:
- "5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
overworld-db:
container_name: overworld-db
image: postgres:14-alpine
restart: always
expose:
- "5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
chickenshock-db:
container_name: chickenshock-db
image: postgres:14-alpine
restart: always
expose:
- "5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
finitequiz-db:
container_name: finitequiz-db
image: postgres:14-alpine
restart: always
expose:
- "5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
crosswordpuzzle-db:
container_name: crosswordpuzzle-db
image: postgres:14-alpine
restart: always
expose:
- "5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
bugfinder-db:
container_name: bugfinder-db
image: postgres:14-alpine
restart: always
expose:
- "5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
memory-db:
container_name: memory-db
image: postgres:14-alpine
restart: always
expose:
- "5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
regexgame-db:
container_name: regexgame-db
image: postgres:14-alpine
restart: always
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
#backends
keycloak:
container_name: keycloak
expose:
- "80"
image: quay.io/keycloak/keycloak:19.0
command:
- "start-dev"
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
- KC_DB=postgres
- KC_DB_URL=jdbc:postgresql://keycloak-db:5432/postgres
- KC_DB_USERNAME=postgres
- KC_DB_PASSWORD=postgres
- KC_HOSTNAME_STRICT=false
- KC_PROXY=edge
- KC_HTTP_RELATIVE_PATH=/keycloak
- KC_HTTP_PORT=80
overworld-backend:
container_name: overworld-backend
image: ghcr.io/gamify-it/overworld-backend:main
restart: always
pull_policy: always
expose:
- "80"
depends_on:
- overworld-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_URL=postgresql://overworld-db:5432/postgres
- CHICKENSHOCK_URL=http://chickenshock-backend/api/v1
- CROSSWORDPUZZLE_URL=http://crosswordpuzzle-backend/api/v1
- FINITEQUIZ_URL=http://finitequiz-backend/api/v1
- BUGFINDER_URL=http://bugfinder-backend/api/v1
- MEMORY_URL=http://memory-backend/api/v1
- KEYCLOAK_ISSUER=http://localhost/keycloak/realms/Gamify-IT
- KEYCLOAK_URL=http://keycloak/keycloak/realms/Gamify-IT
chickenshock-backend:
container_name: chickenshock-backend
image: ghcr.io/gamify-it/chickenshock-backend:main
restart: always
pull_policy: always
expose:
- "80"
depends_on:
- chickenshock-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_URL=postgresql://chickenshock-db:5432/postgres
- OVERWORLD_URL=http://overworld-backend/api/v1
- KEYCLOAK_ISSUER=http://localhost/keycloak/realms/Gamify-IT
- KEYCLOAK_URL=http://keycloak/keycloak/realms/Gamify-IT
bugfinder-backend:
container_name: bugfinder-backend
image: ghcr.io/gamify-it/bugfinder-backend:main
restart: always
pull_policy: always
expose:
- "80"
depends_on:
- bugfinder-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_URL=postgresql://bugfinder-db:5432/postgres
- OVERWORLD_URL=http://overworld-backend/api/v1
- KEYCLOAK_ISSUER=http://localhost/keycloak/realms/Gamify-IT
- KEYCLOAK_URL=http://keycloak/keycloak/realms/Gamify-IT
finitequiz-backend:
container_name: finitequiz-backend
image: ghcr.io/gamify-it/finitequiz-backend:main
restart: always
pull_policy: always
expose:
- "80"
depends_on:
- chickenshock-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_URL=postgresql://finitequiz-db:5432/postgres
- OVERWORLD_URL=http://overworld-backend/api/v1
- KEYCLOAK_ISSUER=http://localhost/keycloak/realms/Gamify-IT
- KEYCLOAK_URL=http://keycloak/keycloak/realms/Gamify-IT
crosswordpuzzle-backend:
container_name: crosswordpuzzle-backend
image: ghcr.io/gamify-it/crosswordpuzzle-backend:main
restart: always
pull_policy: always
expose:
- "80"
depends_on:
- crosswordpuzzle-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_URL=postgresql://crosswordpuzzle-db:5432/postgres
- OVERWORLD_URL=http://overworld-backend/api/v1
- KEYCLOAK_ISSUER=http://localhost/keycloak/realms/Gamify-IT
- KEYCLOAK_URL=http://keycloak/keycloak/realms/Gamify-IT
memory-backend:
container_name: memory-backend
image: ghcr.io/gamify-it/memory-backend:main
restart: always
pull_policy: always
expose:
- "80"
depends_on:
- memory-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_URL=postgresql://memory-db:5432/postgres
- OVERWORLD_URL=http://overworld-backend/api/v1
- KEYCLOAK_ISSUER=http://localhost/keycloak/realms/Gamify-IT
- KEYCLOAK_URL=http://keycloak/keycloak/realms/Gamify-IT
regexgame-backend:
container_name: regexgame-backend
image: ghcr.io/gamify-it/regexgame-backend:main
restart: always
pull_policy: always
expose:
- "80"
depends_on:
- regexgame-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_URL=postgresql://regexgame-db:5432/postgres
- OVERWORLD_URL=http://overworld-backend/api/v1
- KEYCLOAK_ISSUER=http://localhost/keycloak/realms/Gamify-IT
- KEYCLOAK_URL=http://keycloak/keycloak/realms/Gamify-IT
#frontends
landing-page:
container_name: landing-page
image: ghcr.io/gamify-it/landing-page:main
restart: always
pull_policy: always
expose:
- "80"
overworld:
container_name: overworld
image: ghcr.io/gamify-it/overworld:main
restart: always
pull_policy: always
expose:
- "80"
chickenshock:
container_name: chickenshock
image: ghcr.io/gamify-it/chickenshock:main
pull_policy: always
restart: always
expose:
- "80"
finitequiz:
container_name: finitequiz
image: ghcr.io/gamify-it/finitequiz:main
pull_policy: always
restart: always
expose:
- "80"
crosswordpuzzle:
container_name: crosswordpuzzle
image: ghcr.io/gamify-it/crosswordpuzzle:main
pull_policy: always
restart: always
expose:
- "80"
lecturer-interface:
build: .
restart: always
expose:
- "80"
bugfinder:
container_name: bugfinder
image: ghcr.io/gamify-it/bugfinder:main
pull_policy: always
restart: always
expose:
- "80"
memory:
container_name: memory
image: ghcr.io/gamify-it/memory:main
pull_policy: always
restart: always
expose:
- "80"
regexgame:
container_name: regexgame
image: ghcr.io/gamify-it/regexgame:main
pull_policy: always
restart: always
expose:
- "80"
# reverse-proxy
reverse-proxy:
container_name: reverse-proxy
image: nginx
restart: always
volumes:
- ./.nginx/compose/nginx.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- "80:80"