-
Notifications
You must be signed in to change notification settings - Fork 10
/
compose.yml
504 lines (479 loc) · 11.2 KB
/
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
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
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
name: pretendo-network
services:
mitmproxy-pretendo:
image: ghcr.io/matthewl246/mitmproxy-pretendo:local
# build: ./repos/mitmproxy-pretendo
restart: always
ports:
# Proxy server
- 8080:8080
# Mitmweb interface
- 127.0.0.1:8081:8081
volumes:
- type: volume
source: mitmproxy-pretendo-data
target: /home/mitmproxy/.mitmproxy
command: mitmweb --web-host 0.0.0.0
tty: true
# Uncomment everything below to enable SSSL connections with DNS redirection
#
# nginx-sssl:
# # This forwards all requests to the primary Nginx
# build: ./repos/SSSL-DNS/nginx
# restart: always
# ports:
# # HTTPS
# - 443:443
# volumes:
# - type: bind
# source: ./config/nginx-sssl.conf
# target: /opt/nginx/conf/nginx.conf
# read_only: true
# - type: bind
# source: ./console-files/cert-chain.pem
# target: /opt/nginx/ssl/ca.pem
# read_only: true
# - type: bind
# source: ./console-files/ssl-cert-private-key.pem
# target: /opt/nginx/ssl/private.key
# read_only: true
#
# coredns-public:
# # This responds to DNS queries from client consoles, redirecting Nintendo requests to the local server
# image: coredns/coredns:latest
# restart: always
# ports:
# # DNS
# - 53:53/udp
# volumes:
# - type: bind
# source: ./config/public.Corefile
# target: /etc/coredns/Corefile
# read_only: true
# networks:
# default:
# command: -conf /etc/coredns/Corefile
# env_file:
# - ./.env
coredns-internal:
# This responds to DNS queries from the internal network of containers, redirecting Pretendo to the Nginx container
image: coredns/coredns:latest
restart: always
volumes:
- type: bind
source: ./config/internal.Corefile
target: /etc/coredns/Corefile
read_only: true
networks:
internal:
ipv4_address: 172.20.0.200
command: -conf /etc/coredns/Corefile
nginx:
image: nginx:mainline-alpine
depends_on:
- coredns-internal
- mitmproxy-pretendo
restart: always
ports:
# HTTP
- 80:80
volumes:
- type: bind
source: ./config/nginx.conf
target: /etc/nginx/nginx.conf
read_only: true
- type: bind
source: ./config/nginx
target: /etc/nginx/conf.d/
read_only: true
networks:
default:
internal:
dns: 172.20.0.200
mongodb:
# TODO: Set up authentication
image: mongo:latest
depends_on:
- coredns-internal
restart: always
ports:
# For connecting with mongosh or MongoDB Compass
- 127.0.0.1:27017:27017
volumes:
- type: bind
source: ./config/mongod.conf
target: /etc/mongod.conf
read_only: true
- type: volume
source: mongodb-database
target: /data/db
networks:
internal:
dns: 172.20.0.200
command: --config "/etc/mongod.conf" --replSet rs
mongo-express:
image: mongo-express:latest
depends_on:
- coredns-internal
- mongodb
restart: always
ports:
# Web interface
- 127.0.0.1:8082:8082
networks:
internal:
dns: 172.20.0.200
env_file:
- ./environment/mongo-express.env
minio:
image: minio/minio:latest
depends_on:
- coredns-internal
- nginx
restart: always
ports:
# Web console
- 127.0.0.1:8083:8083
volumes:
- type: volume
source: minio-s3-data
target: /data
networks:
internal:
dns: 172.20.0.200
env_file:
- ./environment/minio.env
- ./environment/minio.local.env
command: server --console-address ":8083"
redis:
image: redis:alpine
depends_on:
- coredns-internal
restart: always
volumes:
- type: volume
source: redis-data
target: /data
networks:
internal:
dns: 172.20.0.200
command: redis-server --save 60 1
redis-commander:
image: ghcr.io/joeferner/redis-commander:latest
depends_on:
- coredns-internal
- redis
restart: always
ports:
# Web interface
- 127.0.0.1:8086:8086
networks:
internal:
dns: 172.20.0.200
env_file:
- ./environment/redis-commander.env
mailpit:
image: axllent/mailpit:latest
depends_on:
- coredns-internal
restart: always
ports:
# Mailpit web UI
- 127.0.0.1:8084:8084
volumes:
- type: volume
source: mailpit-mail
target: /data
networks:
internal:
dns: 172.20.0.200
env_file:
- ./environment/mailpit.env
postgres:
image: postgres:alpine
depends_on:
- coredns-internal
restart: always
ports:
# For connecting with pgAdmin
- 127.0.0.1:5432:5432
volumes:
- type: volume
source: postgres-database
target: /var/lib/postgresql/data
networks:
internal:
dns: 172.20.0.200
env_file:
- ./environment/postgres.env
- ./environment/postgres.local.env
adminer:
image: adminer:latest
depends_on:
- coredns-internal
- postgres
restart: always
ports:
# Adminer web interface
- 127.0.0.1:8085:8080
volumes:
- type: bind
source: ./config/adminer-login-servers.php
target: /var/www/html/plugins-enabled/login-servers.php
read_only: true
networks:
internal:
dns: 172.20.0.200
env_file:
- ./environment/adminer.env
account:
build: ./repos/account
depends_on:
- coredns-internal
- nginx
- mongodb
- minio
- redis
- mailpit
restart: always
ports:
# Node.js debugger
- 127.0.0.1:9229:9229
networks:
internal:
dns: 172.20.0.200
command: ["node", "--inspect=0.0.0.0:9229", "."]
env_file:
- ./environment/account.env
- ./environment/account.local.env
website:
build: ./repos/website
depends_on:
- account
- mongodb
restart: always
ports:
# Node.js debugger
- 127.0.0.1:9230:9230
volumes:
- type: bind
source: ./config/website-config.json
target: /home/node/app/config.json
read_only: true
networks:
internal:
command: ["node", "--inspect=0.0.0.0:9230", "."]
dns: 172.20.0.200
friends:
build: ./repos/friends
depends_on:
- account
- postgres
restart: always
ports:
# Go delve debugger
- 127.0.0.1:2345:2345
# Authentication server
- 6000:6000/udp
# Secure server
- 6001:6001/udp
networks:
internal:
dns: 172.20.0.200
env_file:
- ./environment/friends.env
- ./environment/friends.local.env
miiverse-api:
build: ./repos/miiverse-api
depends_on:
- account
- mongodb
- friends
restart: always
ports:
# Node.js debugger
- 127.0.0.1:9231:9231
volumes:
- type: bind
source: ./config/mongoose-connect-options.json
target: /home/node/app/mongoose-connect-options.json
read_only: true
networks:
internal:
dns: 172.20.0.200
command: ["node", "--inspect=0.0.0.0:9231", "."]
env_file:
- ./environment/miiverse-api.env
- ./environment/miiverse-api.local.env
juxtaposition-ui:
build: ./repos/juxtaposition-ui
depends_on:
- account
- mongodb
- redis
- friends
restart: always
ports:
# Node.js debugger
- 127.0.0.1:9232:9232
volumes:
- type: bind
source: ./config/juxtaposition-config.js
target: /app/config.js
read_only: true
networks:
internal:
dns: 172.20.0.200
command: ["node", "--inspect=0.0.0.0:9232", "."]
env_file:
- ./environment/juxtaposition-ui.env
- ./environment/juxtaposition-ui.local.env
boss:
build: ./repos/BOSS
depends_on:
- account
- mongodb
restart: always
ports:
# Node.js debugger
- 127.0.0.1:9233:9233
volumes:
- type: bind
source: ./config/mongoose-connect-options.json
target: /home/node/app/mongoose-connect-options.json
read_only: true
networks:
internal:
dns: 172.20.0.200
command: ["node", "--inspect=0.0.0.0:9233", "."]
env_file:
- ./environment/boss.env
- ./environment/boss.local.env
wiiu-chat-authentication:
build: ./repos/wiiu-chat-authentication
depends_on:
- account
- mongodb
restart: always
ports:
# Go delve debugger
- 127.0.0.1:2346:2345
# Authentication server
- 6002:6002/udp
networks:
internal:
dns: 172.20.0.200
env_file:
- ./environment/wiiu-chat.env
- ./environment/wiiu-chat.local.env
wiiu-chat-secure:
build: ./repos/wiiu-chat-secure
depends_on:
- account
- mongodb
- wiiu-chat-authentication
restart: always
ports:
# Go delve debugger
- 127.0.0.1:2347:2345
# Secure server
- 6003:6003/udp
networks:
internal:
dns: 172.20.0.200
env_file:
- ./environment/wiiu-chat.env
- ./environment/wiiu-chat.local.env
super-mario-maker:
build: ./repos/super-mario-maker
depends_on:
- account
- minio
- postgres
restart: always
ports:
# Go delve debugger
- 127.0.0.1:2348:2345
# Authentication server
- 6004:6004/udp
# Secure server
- 6005:6005/udp
networks:
internal:
dns: 172.20.0.200
env_file:
- ./environment/super-mario-maker.env
- ./environment/super-mario-maker.local.env
splatoon:
build: ./repos/splatoon
depends_on:
- account
- mongodb
restart: unless-stopped
ports:
# Go delve debugger
- 127.0.0.1:2349:2345
# Authentication server
- 6006:6006/udp
# Secure server
- 6007:6007/udp
networks:
internal:
dns: 172.20.0.200
env_file:
- ./environment/splatoon.env
- ./environment/splatoon.local.env
minecraft-wiiu:
build: ./repos/minecraft-wiiu
depends_on:
- account
restart: unless-stopped
ports:
# Go delve debugger
- 127.0.0.1:2350:2345
# Authentication server
- 6008:6008/udp
# Secure server
- 6009:6009/udp
networks:
internal:
dns: 172.20.0.200
env_file:
- ./environment/minecraft-wiiu.env
- ./environment/minecraft-wiiu.local.env
pikmin-3:
build: ./repos/pikmin-3
depends_on:
- account
- postgres
restart: unless-stopped
ports:
# Go delve debugger
- 127.0.0.1:2351:2349
# Authentication server
- 6010:6010/udp
# Secure server
- 6011:6011/udp
networks:
internal:
dns: 172.20.0.200
env_file:
- ./environment/pikmin-3.env
- ./environment/pikmin-3.local.env
volumes:
mitmproxy-pretendo-data:
mongodb-database:
minio-s3-data:
redis-data:
mailpit-mail:
postgres-database:
networks:
default:
# We need to use a custom network so that we can set a static IP address for
# CoreDNS and use it as a DNS server for the other containers.
internal:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.20.0.0/24