-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
288 lines (258 loc) · 7 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
version: '3'
name: transcendence
services:
# Front
front-nginx:
extends:
file: front/docker/docker-compose.yaml
service: front-nginx
depends_on:
notification:
condition: service_healthy
tournament-nginx:
condition: service_healthy
user-management-nginx:
condition: service_healthy
pong-server-nginx:
condition: service_healthy
user-stats-nginx:
condition: service_healthy
crontab:
condition: service_started
front-vite:
condition: service_completed_successfully
front-vite:
extends:
file: front/docker/docker-compose.yaml
service: front-vite
# User management
user-management:
extends:
file: user_management/docker/docker-compose.yaml
service: user-management
depends_on:
user-management-db:
condition: service_healthy
user-management-db:
extends:
file: user_management/docker/docker-compose.yaml
service: user-management-db
user-management-nginx:
extends:
file: user_management/docker/docker-compose.yaml
service: user-management-nginx
depends_on:
user-management:
condition: service_healthy
#User stats
user-stats:
extends:
file: user_stats/docker/docker-compose.yaml
service: user-stats
depends_on:
user-stats-db:
condition: service_healthy
user-stats-db:
extends:
file: user_stats/docker/docker-compose.yaml
service: user-stats-db
user-stats-nginx:
extends:
file: user_stats/docker/docker-compose.yaml
service: user-stats-nginx
depends_on:
user-stats:
condition: service_healthy
# Matchmaking
matchmaking:
extends:
file: matchmaking/docker/docker-compose.yaml
service: matchmaking
# Tournament
tournament:
extends:
file: tournament/docker/docker-compose.yaml
service: tournament
depends_on:
tournament-db:
condition: service_healthy
tournament-db:
extends:
file: tournament/docker/docker-compose.yaml
service: tournament-db
tournament-nginx:
extends:
file: tournament/docker/docker-compose.yaml
service: tournament-nginx
depends_on:
tournament:
condition: service_healthy
# Server Side Pong
pong-server:
extends:
file: pong_server/docker/docker-compose.yaml
service: pong-server
depends_on:
pong-server-cache:
condition: service_healthy
pong-server-cache:
extends:
file: pong_server/docker/docker-compose.yaml
service: pong-server-cache
pong-server-nginx:
extends:
file: pong_server/docker/docker-compose.yaml
service: pong-server-nginx
depends_on:
pong-server:
condition: service_healthy
# Notification
notification:
extends:
file: notification/docker/docker-compose.yaml
service: notification
depends_on:
notification-db:
condition: service_healthy
notification-db:
extends:
file: notification/docker/docker-compose.yaml
service: notification-db
# Crontab
crontab:
extends:
file: crontab/docker-compose.yaml
service: crontab
depends_on:
tournament-nginx:
condition: service_healthy
user-management-nginx:
condition: service_healthy
user-stats-nginx:
condition: service_healthy
pong-server-nginx:
condition: service_healthy
notification:
condition: service_healthy
networks:
front:
driver: bridge
user_management:
driver: bridge
user_stats:
driver: bridge
tournament:
driver: bridge
pong_server:
driver: bridge
transcendence:
driver: bridge
notification:
driver: bridge
volumes:
# Front
front_code:
driver: local
driver_opts:
type: none
o: bind
device: front/app/
front_dist_volume:
driver: local
driver_opts:
type: none
o: bind
device: front/docker/volumes/dist/
# User management
user_management_postgres_volume:
driver: local
driver_opts:
type: none
o: bind
device: user_management/docker/volumes/db/
user_management_code:
driver: local
driver_opts:
type: none
o: bind
device: user_management/src/
user_management_media_volume:
driver: local
driver_opts:
type: none
o: bind
device: user_management/docker/volumes/media/
# User stats
user_stats_postgres_volume:
driver: local
driver_opts:
type: none
o: bind
device: user_stats/docker/volumes/db/
user_stats_code:
driver: local
driver_opts:
type: none
o: bind
device: user_stats/src/
# Matchmaking
matchmaking_code:
driver: local
driver_opts:
type: none
o: bind
device: matchmaking/src/
# Tournament
tournament_postgres_volume:
driver: local
driver_opts:
type: none
o: bind
device: tournament/docker/volumes/db/
tournament_code:
driver: local
driver_opts:
type: none
o: bind
device: tournament/src/
# Server Side Pong
pong_server_code:
driver: local
driver_opts:
type: none
o: bind
device: pong_server/src/
# Notification
notification_postgres_volume:
driver: local
driver_opts:
type: none
o: bind
device: notification/docker/volumes/db/
notification_code:
driver: local
driver_opts:
type: none
o: bind
device: notification/src/
# Common code
common_code:
driver: local
driver_opts:
type: none
o: bind
device: common
# SSL certificate
ssl_certs:
driver: local
driver_opts:
type: none
o: bind
device: ssl/certs
# Cron script
cron_script:
driver: local
driver_opts:
type: none
o: bind
device: crontab/script