fix(docker): gate services on healthy dependencies
This commit is contained in:
@@ -81,6 +81,11 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
clickhouse:
|
clickhouse:
|
||||||
condition: service_healthy
|
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"
|
restart: "no"
|
||||||
|
|
||||||
api:
|
api:
|
||||||
@@ -92,6 +97,10 @@ services:
|
|||||||
- "${API_PORT:-8000}:${API_PORT:-8000}"
|
- "${API_PORT:-8000}:${API_PORT:-8000}"
|
||||||
stop_grace_period: 60s
|
stop_grace_period: 60s
|
||||||
depends_on:
|
depends_on:
|
||||||
|
redpanda:
|
||||||
|
condition: service_healthy
|
||||||
|
clickhouse:
|
||||||
|
condition: service_healthy
|
||||||
init:
|
init:
|
||||||
condition: service_completed_successfully
|
condition: service_completed_successfully
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@@ -109,6 +118,10 @@ services:
|
|||||||
- "${WORKER_STATS_PORT:-8001}:${WORKER_STATS_PORT:-8001}"
|
- "${WORKER_STATS_PORT:-8001}:${WORKER_STATS_PORT:-8001}"
|
||||||
stop_grace_period: 60s
|
stop_grace_period: 60s
|
||||||
depends_on:
|
depends_on:
|
||||||
|
redpanda:
|
||||||
|
condition: service_healthy
|
||||||
|
clickhouse:
|
||||||
|
condition: service_healthy
|
||||||
init:
|
init:
|
||||||
condition: service_completed_successfully
|
condition: service_completed_successfully
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|||||||
Reference in New Issue
Block a user