Repository navigation
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
531 lines (514 loc) · 20 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
531 lines (514 loc) · 20 KB
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
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
services:
# MinIO's own images were pulled from Docker Hub (2026-09-11) and quay.io
# gated anonymous pulls behind a required license/account (2026-09-24), so
# there is no unattended way to run real MinIO in CI or a fresh clone
# anymore. media-storage runs SeaweedFS's S3 gateway instead: it is Apache
# 2.0, freely pullable, and speaks the same S3 API our shared
# S3StorageService already targets, so no application code changes were
# needed. See .project-context/15-media-and-storage.md for the full
# rationale and the S3-semantic checks this was validated against.
media-storage:
image: chrislusf/seaweedfs:4.47
restart: unless-stopped
entrypoint: ['/bin/sh', '-c']
# `command` must be a single-item list here: a plain scalar string is
# word-split by Compose into an argv array before it ever reaches
# `/bin/sh -c`, which silently truncates a multi-line heredoc script.
command:
- |
set -e
mkdir -p /etc/seaweedfs
cat > /etc/seaweedfs/s3.json <<EOF
{"identities":[{"name":"delivery-plus","credentials":[{"accessKey":"$$AWS_ACCESS_KEY_ID","secretKey":"$$AWS_SECRET_ACCESS_KEY"}],"actions":["Admin","Read","Write","List","Tagging"]}]}
EOF
exec weed server -dir=/data -s3 -s3.port=9000 -s3.config=/etc/seaweedfs/s3.json
environment:
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:-minioadmin}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:-minioadmin}
ports:
- '127.0.0.1:9000:9000'
volumes:
- media_storage_data:/data
# Creates the bucket, restricts anonymous public read so unconfirmed
# `pending/` uploads stay private (an improvement over the prior MinIO
# setup, which made the whole bucket world-readable), and applies the
# lifecycle rule that expires abandoned pending uploads after one day.
media-storage-init:
image: amazon/aws-cli:2.37.4
restart: 'no'
depends_on:
media-storage:
condition: service_started
entrypoint: ['/bin/sh', '-c']
# See the media-storage service comment: `command` must be a single-item
# list so Compose does not word-split this multi-line script.
command:
- |
set -e
until aws --endpoint-url "http://media-storage:9000" s3 ls >/dev/null 2>&1; do sleep 1; done
aws --endpoint-url "http://media-storage:9000" s3 mb "s3://$$AWS_S3_BUCKET" --region "$$AWS_REGION" || true
cat > /tmp/policy.json <<EOF
{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":"*","Action":["s3:GetObject"],"NotResource":["arn:aws:s3:::$$AWS_S3_BUCKET/pending/*"]}]}
EOF
aws --endpoint-url "http://media-storage:9000" s3api put-bucket-policy --bucket "$$AWS_S3_BUCKET" --policy file:///tmp/policy.json
cat > /tmp/lifecycle.json <<EOF
{"Rules":[{"ID":"expire-pending","Status":"Enabled","Filter":{"Prefix":"pending/"},"Expiration":{"Days":1}}]}
EOF
aws --endpoint-url "http://media-storage:9000" s3api put-bucket-lifecycle-configuration --bucket "$$AWS_S3_BUCKET" --lifecycle-configuration file:///tmp/lifecycle.json
# #207: driver documents get their own bucket with no bucket policy at all, so nothing in it is
# public; staff read through 5-minute presigned URLs. Unconfirmed uploads expire after a day.
aws --endpoint-url "http://media-storage:9000" s3 mb "s3://$$DRIVER_DOCUMENTS_BUCKET" --region "$$AWS_REGION" || true
aws --endpoint-url "http://media-storage:9000" s3api put-bucket-lifecycle-configuration --bucket "$$DRIVER_DOCUMENTS_BUCKET" --lifecycle-configuration file:///tmp/lifecycle.json
environment:
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:-minioadmin}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:-minioadmin}
AWS_DEFAULT_REGION: ${AWS_REGION:-us-east-1}
AWS_REGION: ${AWS_REGION:-us-east-1}
AWS_S3_BUCKET: ${AWS_S3_BUCKET:-delivery-plus-media}
DRIVER_DOCUMENTS_BUCKET: ${DRIVER_DOCUMENTS_BUCKET:-delivery-plus-private}
kafka:
ports:
- '127.0.0.1:9092:9092'
kafka-ui:
image: provectuslabs/kafka-ui:latest
restart: unless-stopped
depends_on:
kafka:
condition: service_healthy
ports:
- '127.0.0.1:8085:8080'
environment:
KAFKA_CLUSTERS_0_NAME: local
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka:29092
api-gateway:
build:
context: .
args:
SERVICE_NAME: api-gateway
restart: unless-stopped
ports:
- '3000:3000'
environment:
NODE_ENV: development
AUTH_SERVICE_URL: http://auth-service:3001
USER_SERVICE_URL: http://user-service:3002
RESTAURANT_SERVICE_URL: http://restaurant-service:3003
MENU_SERVICE_URL: http://menu-service:3004
CART_SERVICE_URL: http://cart-service:3005
ORDER_SERVICE_URL: http://order-service:3006
PAYMENT_SERVICE_URL: http://payment-service:3007
DELIVERY_SERVICE_URL: http://delivery-service:3008
DRIVER_SERVICE_URL: http://driver-service:3009
TRACKING_SERVICE_URL: http://tracking-service:3010
NOTIFICATION_SERVICE_URL: http://notification-service:3011
AUDIT_SERVICE_URL: http://audit-service:3012
healthcheck:
test: ['CMD', 'wget', '--spider', '-q', 'http://localhost:3000/health']
interval: 5s
timeout: 5s
retries: 10
depends_on:
auth-service:
condition: service_healthy
user-service:
condition: service_healthy
restaurant-service:
condition: service_healthy
menu-service:
condition: service_healthy
cart-service:
condition: service_healthy
order-service:
condition: service_healthy
payment-service:
condition: service_healthy
delivery-service:
condition: service_healthy
driver-service:
condition: service_healthy
tracking-service:
condition: service_healthy
notification-service:
condition: service_healthy
audit-service:
condition: service_healthy
auth-service:
build:
context: .
args:
SERVICE_NAME: auth-service
restart: unless-stopped
environment:
SYSTEM_JWT_SECRET: ${SYSTEM_JWT_SECRET:-local-system-jwt-development-only}
NODE_ENV: development
DATABASE_URL: postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/auth_service
REDIS_URL: redis://redis:6379
JWT_SECRET: ${JWT_SECRET:-local-development-only}
# #203: verification emails go to Redis (test:email:<address>); refused in production.
EMAIL_PROVIDER: ${EMAIL_PROVIDER:-test}
# Access-token lifetime (#34). The apps' E2E runs set it short (e.g. 60s) to prove sessions survive refreshes.
JWT_EXPIRES_IN: ${JWT_EXPIRES_IN:-15m}
# #252: off by default; the apps' E2E restarts auth-service with it on to test the email-code screen.
EMAIL_VERIFICATION_REQUIRED: ${EMAIL_VERIFICATION_REQUIRED:-false}
# #202: the local stack's super admin (all permissions) for `npm run e2e`; refused in production.
TEST_ADMIN_EMAIL: ${TEST_ADMIN_EMAIL:-qa.admin@delivery-plus.test}
TEST_ADMIN_PASSWORD: ${TEST_ADMIN_PASSWORD:-Qa-Only-Admin-Passw0rd!}
INTERNAL_AUTH_SECRET: ${INTERNAL_AUTH_SECRET:-local-internal-auth-development-only}
USER_SERVICE_URL: http://user-service:3002
ADMIN_APP_URL: ${ADMIN_APP_URL:-http://localhost:8086}
KAFKA_BROKER: kafka:29092
healthcheck:
test: ['CMD', 'wget', '--spider', '-q', 'http://localhost:3001/health/ready']
interval: 5s
timeout: 5s
retries: 10
depends_on:
kafka:
condition: service_healthy
postgres:
condition: service_healthy
user-service:
build:
context: .
args:
SERVICE_NAME: user-service
restart: unless-stopped
environment:
NODE_ENV: development
DATABASE_URL: postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/user_service
JWT_SECRET: ${JWT_SECRET:-local-development-only}
SYSTEM_JWT_SECRET: ${SYSTEM_JWT_SECRET:-local-system-jwt-development-only}
RESTAURANT_SERVICE_URL: http://restaurant-service:3003
DRIVER_SERVICE_URL: http://driver-service:3009
AUTH_SERVICE_URL: http://auth-service:3001
REDIS_URL: redis://redis:6379
INTERNAL_AUTH_SECRET: ${INTERNAL_AUTH_SECRET:-local-internal-auth-development-only}
ORDER_SERVICE_URL: http://order-service:3006
AWS_REGION: ${AWS_REGION:-us-east-1}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:-minioadmin}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:-minioadmin}
AWS_S3_BUCKET: ${AWS_S3_BUCKET:-delivery-plus-media}
AWS_S3_ENDPOINT: http://media-storage:9000
AWS_S3_PUBLIC_ENDPOINT: ${AWS_S3_PUBLIC_ENDPOINT:-http://localhost:9000}
AWS_PUBLIC_BASE_URL: ${AWS_PUBLIC_BASE_URL:-http://localhost:9000/delivery-plus-media}
AWS_S3_FORCE_PATH_STYLE: 'true'
KAFKA_BROKER: kafka:29092
healthcheck:
test: ['CMD', 'wget', '--spider', '-q', 'http://localhost:3002/health/ready']
interval: 5s
timeout: 5s
retries: 10
depends_on:
kafka:
condition: service_healthy
postgres:
condition: service_healthy
redis:
condition: service_healthy
media-storage-init:
condition: service_completed_successfully
restaurant-service:
build:
context: .
args:
SERVICE_NAME: restaurant-service
restart: unless-stopped
environment:
NODE_ENV: development
DATABASE_URL: postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/restaurant_service
REDIS_URL: redis://redis:6379
JWT_SECRET: ${JWT_SECRET:-local-development-only}
INTERNAL_AUTH_SECRET: ${INTERNAL_AUTH_SECRET:-local-internal-auth-development-only}
INTERNAL_AUTH_ALLOWED_SERVICES: ${INTERNAL_AUTH_ALLOWED_SERVICES:-menu-service,order-service}
DEFAULT_DELIVERY_RADIUS_KM: ${DEFAULT_DELIVERY_RADIUS_KM:-5}
MENU_SERVICE_URL: http://menu-service:3004
SYSTEM_JWT_SECRET: ${SYSTEM_JWT_SECRET:-local-system-jwt-development-only}
ORDER_SERVICE_URL: http://order-service:3006
USER_SERVICE_URL: http://user-service:3002
AWS_REGION: ${AWS_REGION:-us-east-1}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:-minioadmin}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:-minioadmin}
AWS_S3_BUCKET: ${AWS_S3_BUCKET:-delivery-plus-media}
AWS_S3_ENDPOINT: http://media-storage:9000
AWS_S3_PUBLIC_ENDPOINT: ${AWS_S3_PUBLIC_ENDPOINT:-http://localhost:9000}
AWS_PUBLIC_BASE_URL: ${AWS_PUBLIC_BASE_URL:-http://localhost:9000/delivery-plus-media}
AWS_S3_FORCE_PATH_STYLE: 'true'
KAFKA_BROKER: kafka:29092
healthcheck:
test: ['CMD', 'wget', '--spider', '-q', 'http://localhost:3003/health/ready']
interval: 5s
timeout: 5s
retries: 10
depends_on:
kafka:
condition: service_healthy
postgres:
condition: service_healthy
media-storage-init:
condition: service_completed_successfully
menu-service:
build:
context: .
args:
SERVICE_NAME: menu-service
restart: unless-stopped
environment:
NODE_ENV: development
DATABASE_URL: postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/menu_service
REDIS_URL: redis://redis:6379
JWT_SECRET: ${JWT_SECRET:-local-development-only}
RESTAURANT_SERVICE_URL: http://restaurant-service:3003
INTERNAL_AUTH_SECRET: ${INTERNAL_AUTH_SECRET:-local-internal-auth-development-only}
INTERNAL_AUTH_SERVICE: menu-service
AWS_REGION: ${AWS_REGION:-us-east-1}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:-minioadmin}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:-minioadmin}
AWS_S3_BUCKET: ${AWS_S3_BUCKET:-delivery-plus-media}
AWS_S3_ENDPOINT: http://media-storage:9000
AWS_S3_PUBLIC_ENDPOINT: ${AWS_S3_PUBLIC_ENDPOINT:-http://localhost:9000}
AWS_PUBLIC_BASE_URL: ${AWS_PUBLIC_BASE_URL:-http://localhost:9000/delivery-plus-media}
AWS_S3_FORCE_PATH_STYLE: 'true'
KAFKA_BROKER: kafka:29092
healthcheck:
test: ['CMD', 'wget', '--spider', '-q', 'http://localhost:3004/health/ready']
interval: 5s
timeout: 5s
retries: 10
depends_on:
kafka:
condition: service_healthy
postgres:
condition: service_healthy
restaurant-service:
condition: service_healthy
media-storage-init:
condition: service_completed_successfully
cart-service:
build:
context: .
args:
SERVICE_NAME: cart-service
restart: unless-stopped
environment:
NODE_ENV: development
REDIS_URL: redis://redis:6379
JWT_SECRET: ${JWT_SECRET:-local-development-only}
MENU_SERVICE_URL: http://menu-service:3004
healthcheck:
test: ['CMD', 'wget', '--spider', '-q', 'http://localhost:3005/health/ready']
interval: 5s
timeout: 5s
retries: 10
depends_on:
redis:
condition: service_healthy
menu-service:
condition: service_healthy
order-service:
build:
context: .
args:
SERVICE_NAME: order-service
restart: unless-stopped
environment:
NODE_ENV: development
DATABASE_URL: postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/order_service
REDIS_URL: redis://redis:6379
JWT_SECRET: ${JWT_SECRET:-local-development-only}
SYSTEM_JWT_SECRET: ${SYSTEM_JWT_SECRET:-local-system-jwt-development-only}
KAFKA_BROKER: kafka:29092
CART_SERVICE_URL: http://cart-service:3005
RESTAURANT_SERVICE_URL: http://restaurant-service:3003
USER_SERVICE_URL: http://user-service:3002
INTERNAL_AUTH_SECRET: ${INTERNAL_AUTH_SECRET:-local-internal-auth-development-only}
INTERNAL_AUTH_SERVICE: order-service
healthcheck:
test: ['CMD', 'wget', '--spider', '-q', 'http://localhost:3006/health/ready']
interval: 5s
timeout: 5s
retries: 10
depends_on:
postgres:
condition: service_healthy
kafka:
condition: service_healthy
cart-service:
condition: service_healthy
restaurant-service:
condition: service_healthy
payment-service:
build:
context: .
args:
SERVICE_NAME: payment-service
restart: unless-stopped
environment:
NODE_ENV: development
DATABASE_URL: postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/payment_service
JWT_SECRET: ${JWT_SECRET:-local-development-only}
SYSTEM_JWT_SECRET: ${SYSTEM_JWT_SECRET:-local-system-jwt-development-only}
KAFKA_BROKER: kafka:29092
ORDER_SERVICE_URL: http://order-service:3006
healthcheck:
test: ['CMD', 'wget', '--spider', '-q', 'http://localhost:3007/health/ready']
interval: 5s
timeout: 5s
retries: 10
depends_on:
postgres:
condition: service_healthy
kafka:
condition: service_healthy
order-service:
condition: service_healthy
delivery-service:
build:
context: .
args:
SERVICE_NAME: delivery-service
restart: unless-stopped
environment:
NODE_ENV: development
DATABASE_URL: postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/delivery_service
JWT_SECRET: ${JWT_SECRET:-local-development-only}
SYSTEM_JWT_SECRET: ${SYSTEM_JWT_SECRET:-local-system-jwt-development-only}
REDIS_URL: redis://redis:6379
KAFKA_BROKER: kafka:29092
ORDER_SERVICE_URL: http://order-service:3006
DRIVER_SERVICE_URL: http://driver-service:3009
RESTAURANT_SERVICE_URL: http://restaurant-service:3003
USER_SERVICE_URL: http://user-service:3002
healthcheck:
test: ['CMD', 'wget', '--spider', '-q', 'http://localhost:3008/health/ready']
interval: 5s
timeout: 5s
retries: 10
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
kafka:
condition: service_healthy
order-service:
condition: service_healthy
driver-service:
condition: service_healthy
driver-service:
build:
context: .
args:
SERVICE_NAME: driver-service
restart: unless-stopped
environment:
NODE_ENV: development
DATABASE_URL: postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/driver_service
JWT_SECRET: ${JWT_SECRET:-local-development-only}
SYSTEM_JWT_SECRET: ${SYSTEM_JWT_SECRET:-local-system-jwt-development-only}
DELIVERY_SERVICE_URL: http://delivery-service:3008
USER_SERVICE_URL: http://user-service:3002
# #206: new drivers start VERIFIED locally, so `npm run seed` works without an admin (refused in production).
DRIVER_AUTO_VERIFY: ${DRIVER_AUTO_VERIFY:-true}
KAFKA_BROKER: kafka:29092
# #207: rate limits on document uploads and staff reads, and the private documents bucket.
REDIS_URL: redis://redis:6379
DRIVER_DOCUMENTS_BUCKET: ${DRIVER_DOCUMENTS_BUCKET:-delivery-plus-private}
AWS_REGION: ${AWS_REGION:-us-east-1}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:-minioadmin}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:-minioadmin}
AWS_S3_ENDPOINT: http://media-storage:9000
AWS_S3_PUBLIC_ENDPOINT: ${AWS_S3_PUBLIC_ENDPOINT:-http://localhost:9000}
AWS_S3_FORCE_PATH_STYLE: 'true'
healthcheck:
test: ['CMD', 'wget', '--spider', '-q', 'http://localhost:3009/health/ready']
interval: 5s
timeout: 5s
retries: 10
depends_on:
postgres:
condition: service_healthy
kafka:
condition: service_healthy
redis:
condition: service_healthy
media-storage-init:
condition: service_completed_successfully
tracking-service:
build:
context: .
args:
SERVICE_NAME: tracking-service
restart: unless-stopped
environment:
NODE_ENV: development
REDIS_URL: redis://redis:6379
JWT_SECRET: ${JWT_SECRET:-local-development-only}
SYSTEM_JWT_SECRET: ${SYSTEM_JWT_SECRET:-local-system-jwt-development-only}
DELIVERY_SERVICE_URL: http://delivery-service:3008
DRIVER_SERVICE_URL: http://driver-service:3009
KAFKA_BROKER: kafka:29092
healthcheck:
test: ['CMD', 'wget', '--spider', '-q', 'http://localhost:3010/health/ready']
interval: 5s
timeout: 5s
retries: 10
depends_on:
kafka:
condition: service_healthy
redis:
condition: service_healthy
delivery-service:
condition: service_healthy
driver-service:
condition: service_healthy
notification-service:
build:
context: .
args:
SERVICE_NAME: notification-service
restart: unless-stopped
environment:
NODE_ENV: development
DATABASE_URL: postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/notification_service
JWT_SECRET: ${JWT_SECRET:-local-development-only}
REDIS_URL: redis://redis:6379
KAFKA_BROKER: kafka:29092
healthcheck:
test: ['CMD', 'wget', '--spider', '-q', 'http://localhost:3011/health/ready']
interval: 5s
timeout: 5s
retries: 10
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
kafka:
condition: service_healthy
# #213: the append-only staff audit log; consumes admin.actions.
audit-service:
build:
context: .
args:
SERVICE_NAME: audit-service
restart: unless-stopped
environment:
NODE_ENV: development
DATABASE_URL: postgres://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/audit_service
JWT_SECRET: ${JWT_SECRET:-local-development-only}
REDIS_URL: redis://redis:6379
KAFKA_BROKER: kafka:29092
healthcheck:
test: ['CMD', 'wget', '--spider', '-q', 'http://localhost:3012/health/ready']
interval: 5s
timeout: 5s
retries: 10
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
kafka:
condition: service_healthy
volumes:
media_storage_data: