fix(docker): gate services on healthy dependencies

This commit is contained in:
2026-09-20 10:40:39 +03:30
parent 8dcbe384b0
commit 1e6f129941

View File

@@ -81,6 +81,11 @@ services:
condition: service_healthy
clickhouse:
condition: service_healthy
healthcheck:
test: ["CMD", "python", "-c", "from app.common.bootstrap import SCHEMA; assert SCHEMA.is_file()"]
interval: 5s
timeout: 5s
retries: 3
restart: "no"
api:
@@ -92,6 +97,10 @@ services:
- "${API_PORT:-8000}:${API_PORT:-8000}"
stop_grace_period: 60s
depends_on:
redpanda:
condition: service_healthy
clickhouse:
condition: service_healthy
init:
condition: service_completed_successfully
healthcheck:
@@ -109,6 +118,10 @@ services:
- "${WORKER_STATS_PORT:-8001}:${WORKER_STATS_PORT:-8001}"
stop_grace_period: 60s
depends_on:
redpanda:
condition: service_healthy
clickhouse:
condition: service_healthy
init:
condition: service_completed_successfully
healthcheck: