-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathdocker-compose.release-example.yml
191 lines (177 loc) · 3.87 KB
/
docker-compose.release-example.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
# You should use this file in the following manner:
# `docker compose --env-file .env-prod -f docker-compose.release-example.yml`
services:
rabbitmq:
restart: on-failure
image: "docker.io/library/rabbitmq:3.12-management"
ports:
- "127.0.0.1:5672:5672"
- "127.0.0.1:15672:15672"
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
interval: 5s
retries: 10
env_file:
- .env-prod
- .env
postgres:
image: docker.io/library/postgres:15
shm_size: 256MB
ports:
- "0.0.0.0:5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
- ./init-user-db.sh:/docker-entrypoint-initdb.d/init-user-db.sh
env_file:
- .env-prod
- .env
environment:
APPS: "ROCKY BYTES KATALOGUS SCHEDULER"
crux:
image: "ghcr.io/dekkers/xtdb-http-multinode:v1.1.0"
restart: on-failure
ports:
- "127.0.0.1:3000:3000"
volumes:
- xtdb-data:/var/lib/xtdb
octopoes_api:
restart: on-failure
depends_on:
- crux
ports:
- "127.0.0.1:8001:80"
image: "ghcr.io/minvws/nl-kat-octopoes:${KAT_VERSION}"
command: web
env_file:
- .env-prod
- .env
octopoes_api_worker:
restart: on-failure
depends_on:
- crux
- rabbitmq
image: "ghcr.io/minvws/nl-kat-octopoes:${KAT_VERSION}"
command: worker-beat
env_file:
- .env-prod
- .env
ulimits:
nofile:
soft: 262144
hard: 262144
boefje:
restart: on-failure
depends_on:
- rabbitmq
- bytes
image: "ghcr.io/minvws/nl-kat-boefjes:${KAT_VERSION}"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
replicas: 1
command: boefje
env_file:
- .env-prod
- .env
environment:
- BOEFJES_DOCKER_NETWORK=${COMPOSE_PROJECT_NAME:-nl-kat-coordination}_default
normalizer:
restart: on-failure
depends_on:
- rabbitmq
- bytes
image: "ghcr.io/minvws/nl-kat-boefjes:${KAT_VERSION}"
deploy:
replicas: 1
command: normalizer
env_file:
- .env-prod
- .env
rocky:
restart: on-failure
depends_on:
- rocky_worker
- octopoes_api_worker
- octopoes_api
- postgres
- boefje
- normalizer
- katalogus
- scheduler
ports:
- "127.0.0.1:8000:8000"
image: "ghcr.io/minvws/nl-kat-rocky:${KAT_VERSION}"
command: web
env_file:
- .env-prod
- .env
environment:
- DATABASE_MIGRATION=true
rocky_worker:
restart: on-failure
depends_on:
- octopoes_api_worker
- octopoes_api
- postgres
- boefje
- normalizer
- katalogus
- scheduler
image: "ghcr.io/minvws/nl-kat-rocky:${KAT_VERSION}"
command: worker
env_file:
- .env-prod
- .env
bytes:
restart: on-failure
depends_on:
- postgres
ports:
- "127.0.0.1:8002:8000"
image: "ghcr.io/minvws/nl-kat-bytes:${KAT_VERSION}"
env_file:
- .env-prod
- .env
environment:
- BYTES_DATA_DIR=/data
volumes:
- bytes-data:/data
katalogus:
restart: on-failure
depends_on:
- postgres
image: "ghcr.io/minvws/nl-kat-boefjes:${KAT_VERSION}"
command: katalogus
ports:
- "127.0.0.1:8003:8000"
env_file:
- .env-prod
- .env
environment:
- DATABASE_MIGRATION=true
scheduler:
restart: on-failure
image: "ghcr.io/minvws/nl-kat-mula:${KAT_VERSION}"
ports:
- "127.0.0.1:8004:8000"
env_file:
- .env-prod
- .env
depends_on:
- postgres
- boefje
- normalizer
- octopoes_api
- katalogus
keiko:
restart: on-failure
image: "ghcr.io/minvws/nl-kat-keiko:${KAT_VERSION}"
ports:
- "127.0.0.1:8005:8000"
env_file:
- .env-prod
- .env
volumes:
postgres-data:
bytes-data:
xtdb-data: