This repository has been archived by the owner on May 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
336 lines (324 loc) · 8.63 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
324
325
326
327
328
329
330
331
332
333
334
335
336
# https://heroiclabs.com/docs/nakama/getting-started/install/docker/
services:
cockroach:
container_name: cockroach
command:
- start-single-node
- --http-addr=:8080
- --insecure
- --listen-addr=:26257
# - --sql-addr=:26257
- --store=attrs=ssd,path=/var/lib/cockroach/
expose:
- 8080
- 26257
healthcheck:
interval: 10s
retries: 5
start_period: 5s
test: curl -f http://cockroach:8080/health
timeout: 5s
image: cockroachdb/cockroach:v22.1.1
labels:
namespace: cockroach
ports:
- 8080:8080
# - 26257:26257
restart: "no"
volumes:
- cockroach:/var/lib/cockroach
jaeger:
container_name: jaeger
environment:
- LOG_LEVEL=debug
- COLLECTOR_ZIPKIN_ALLOWED_HEADERS=*
- COLLECTOR_ZIPKIN_ALLOWED_ORIGINS=*
- COLLECTOR_ZIPKIN_HOST_PORT=:9411
expose:
- 5775/udp # accept zipkin.thrift over compact thrift protocol (deprecated, used by legacy clients only)
- 6831/udp # accept jaeger.thrift over compact thrift protocol
- 6832/udp # accept jaeger.thrift over binary thrift protocol
- 5778 # serve configs
- 16686 # serve frontend
- 14268 # accept jaeger.thrift directly from clients
- 14269 # admin port: health check at / and metrics at /metrics
- 14250 # accept model.proto
- 9411 # Zipkin compatible endpoint (optional)
healthcheck:
interval: 10s
retries: 5
start_period: 5s
test: wget --no-verbose --tries=1 --spider http://jaeger:14269
timeout: 5s
image: jaegertracing/all-in-one:1.34.1
labels:
namespace: jaeger
ports:
# - 5775:5775/udp
# - 6831:6831/udp
# - 6832:6832/udp
# - 5778:5778
- 16686:16686
# - 14268:14268
# - 14269:14269
# - 14250:14250
# - 9411:9411
restart: "no"
volumes:
- jaeger:/tmp
# materialize-cli:
# entrypoint:
# - "/bin/sh"
# - "-ecx"
# - >
# exec /usr/bin/psql --file=/materialize-cli.sql postgres://materialize@materialized:6875/materialize
# command:
# - --host=materialize
# - --no-password
# - --port=6875 materialize
# - --username=materialize
# container_name: materialize-cli
# depends_on:
# materialized:
# condition: service_healthy
# image: materialize/cli:v0.26.2
# labels:
# namespace: materialize-cli
# restart: "no"
# volumes:
# - ./docker/materialize-cli.sql:/materialize-cli.sql:ro
# # https://materialize.com/docs/cli/
# materialized:
# command:
# - --data-directory=/data
# - --disable-telemetry
# - --introspection-frequency=1s
# - --listen-addr=0.0.0.0:6875
# - --log-filter=info
# - --logical-compaction-window=1s
# - --metrics-scraping-interval=30s
# - --workers=1
# container_name: materialized
# depends_on:
# redpanda:
# condition: service_healthy
# expose:
# - 6875
# healthcheck:
# interval: 10s
# retries: 5
# start_period: 5s
# test: curl -f http://materialized:6875
# timeout: 5s
# image: materialize/materialized:v0.26.2
# labels:
# namespace: materialized
# # ports:
# # - 6875:6875
# restart: "no"
# volumes:
# # - ./docker/materialized.yaml:/etc/materialized/config.yaml:ro
# - materialized:/mzdata
nakama:
container_name: nakama
depends_on:
cockroach:
condition: service_healthy
jaeger:
condition: service_healthy
nakama-pluginbuilder:
condition: service_completed_successfully
otelcol:
condition: service_started
pgadmin4:
condition: service_healthy
redpanda:
condition: service_healthy
entrypoint:
- "/bin/sh"
- "-ecx"
- >
/nakama/nakama migrate up --database.address root@cockroach:26257 &&
exec /nakama/nakama --config=/etc/nakama/config.yaml
env_file:
- ./.env
expose:
- 7348 # gRPC API embedded developer
- 7349 # gRPC API
- 7350 # HTTP API
- 7351 # HTTP API embedded developer
- 9100 # Prometheus
healthcheck:
interval: 10s
retries: 5
start_period: 5s
test: curl -f http://nakama:7350
timeout: 5s
image: heroiclabs/nakama:3.12.0
labels:
namespace: nakama
ports:
- 7348:7348
- 7349:7349
- 7350:7350
- 7351:7351
# - 9100:9100
restart: "no"
volumes:
- ./build:/nakama/data/modules:ro
- ./docker/nakama.yaml:/etc/nakama/config.yaml:ro
- nakama:/nakama/data
nakama-pluginbuilder:
container_name: nakama-pluginbuilder
entrypoint: ./script/nakama-pluginbuilder.sh true
# healthcheck:
# interval: 10s
# retries: 5
# start_period: 5s
# test: curl -f http://nakama-pluginbuilder:7350
# timeout: 5s
image: heroiclabs/nakama-pluginbuilder:3.12.0
labels:
namespace: nakama-pluginbuilder
restart: "no"
volumes:
- ./:/workspace
working_dir: /workspace
otelcol:
command:
- --config=/etc/otelcol/config.yaml
container_name: otelcol
expose:
- 4317
- 4318
- 8888
- 14268
- 13133
# healthcheck:
# interval: 10s
# retries: 5
# start_period: 5s
# test: curl -f http://otelcol:13133
# timeout: 5s
image: otel/opentelemetry-collector:0.53.0
labels:
namespace: otelcol
ports:
# - 4317:4317
- 4318:4318
# - 8888:8888
# - 14268:14268
# - 13133:13133
restart: unless-stopped
volumes:
- ./docker/otelcol.yaml:/etc/otelcol/config.yaml:ro
# https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html
pgadmin4:
container_name: pgadmin4
depends_on:
cockroach:
condition: service_healthy
environment:
- PGADMIN_DEFAULT_PASSWORD=SuperSecret
- PGADMIN_LISTEN_ADDRESS=0.0.0.0
- PGADMIN_LISTEN_PORT=5050
expose:
- 5050
healthcheck:
interval: 10s
retries: 5
start_period: 5s
test: wget --no-verbose --spider --tries=1 http://pgadmin4:5050
timeout: 5s
image: dpage/pgadmin4:6.10
labels:
namespace: pgadmin4
ports:
- 5050:5050
restart: "no"
volumes:
- ./docker/pgadmin4.json:/pgadmin4/servers.json:ro
- ./docker/pgadmin4.pass:/pgadmin4/pass:ro
- pgadmin:/var/lib/pgadmin
# https://docs.redpanda.com/docs/cluster-administration/configuration/
redpanda:
command:
- redpanda
- start
# - --redpanda-cfg=/etc/redpanda/config.yaml
- --advertise-kafka-addr=PLAINTEXT://redpanda:29092,OUTSIDE://localhost:9092
- --advertise-pandaproxy-addr=localhost:8082
- --check=false
- --default-log-level=info
- --kafka-addr=PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092
- --memory=1G
- --node-id=0
- --overprovisioned
- --pandaproxy-addr=0.0.0.0:8082
- --reserve-memory=0M
- --set redpanda.enable_idempotence=true
- --set redpanda.enable_transactions=true
- --smp=1
container_name: redpanda
expose:
- 8081 # schema registry api
- 8082 # panda proxy api
- 9092 # kafka api
- 29092 # CONNECT FROM APPS
- 9644 # admin api
healthcheck:
interval: 10s
retries: 5
start_period: 5s
test: curl -f http://redpanda:8081/schemas/types
timeout: 5s
image: vectorized/redpanda:v22.1.3
labels:
namespace: redpanda
ports:
# - 8081:8081
# - 8082:8082
- 9092:9092
# - 29092:29092
# - 9644:9644
restart: "no"
volumes:
# - ./docker/redpanda.yaml:/etc/redpanda/config.yaml:ro
- redpanda:/var/lib/redpanda/data
# https://docs.redpanda.com/docs/cluster-administration/configuration/
# vector:
# command:
# - --color=never
# - --config=/etc/vector/config.yaml
# - --log-format=json
# - --require-healthy=true
# container_name: vector
# depends_on:
# redpanda:
# condition: service_healthy
# expose:
# - 8686
# healthcheck:
# interval: 10s
# retries: 5
# start_period: 5s
# test: curl -f http://vector:8686/health
# timeout: 5s
# image: timberio/vector:0.21.2-debian
# labels:
# namespace: vector
# # ports:
# # - 8686:8686
# restart: "no"
# volumes:
# - ./docker/vector.yaml:/etc/vector/config.yaml:ro
# - vector:/var/lib/vector
volumes:
cockroach:
jaeger:
# materialized:
nakama:
pgadmin:
redpanda:
# vector: