-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
94 lines (87 loc) · 2.05 KB
/
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
services:
ingress:
container_name: ingress
build:
context: ingress
dockerfile: Dockerfile
ports:
- 5000:80
environment:
- GAMEMASTER_UPSTREAM=gamemaster:8000
profiles: [dev]
test-ingress:
container_name: test-ingress
build:
context: ingress
dockerfile: Dockerfile
ports:
- 10000:80
environment:
- GAMEMASTER_UPSTREAM=host.docker.internal:50000
profiles: [test]
mosquitto:
container_name: mosquitto
image: eclipse-mosquitto:2.0.18
volumes:
- ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
ports:
- 1883:1883
profiles: [dev, test]
board:
container_name: board
build:
context: board
dockerfile: Dockerfile
volumes:
- ./board:/app/board
- ./common:/app/common
- /app/board/node_modules
profiles: [dev, test]
gamemaster:
container_name: gamemaster
build:
context: gamemaster
dockerfile: Dockerfile
volumes:
- ./gamemaster:/app
environment:
DJANGO_DATABASE_PASSWORD: postgres
DJANGO_DATABASE_HOST: db
DJANGO_DATABASE_USER: postgres
PARTICIPATIONS: 2
stdin_open: true
tty: true
profiles: [dev, test]
player:
container_name: player
build:
context: player
dockerfile: Dockerfile
volumes:
- ./player:/app/player
- ./common:/app/common
- /app/player/node_modules
profiles: [dev, test]
db:
container_name: db
image: postgres:16.1-alpine3.18
volumes:
- ./var/data/db:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
profiles: [dev]
test-db:
container_name: test-db
image: postgres:16.1-alpine3.18
ports:
- 20000:5432
command: postgres --fsync=off --synchronous-commit=off --full-page-writes=off
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
profiles: [test]
tmpfs:
- /var/lib/postgresql