diff --git a/compose.yaml b/compose.yaml index 0b652971..c4c44b30 100644 --- a/compose.yaml +++ b/compose.yaml @@ -174,9 +174,14 @@ services: entrypoint: ["/app/reconcile", "--apply", "--interval", "${RECONCILE_INTERVAL:-10m}", "--grace", "${RECONCILE_GRACE:-1h}"] environment: *api-env secrets: [database_url, s3_access_key_id, s3_secret_access_key] - # HTTP не обслуживает: HEALTHCHECK образа API к нему не относится. + # HTTP не обслуживает, поэтому вместо HEALTHCHECK образа API — проверка, что + # процесс reconcile жив (нужна и для docker compose up --wait). healthcheck: - disable: true + test: ["CMD-SHELL", "pgrep -x reconcile >/dev/null || pidof reconcile >/dev/null"] + interval: 10s + timeout: 3s + retries: 3 + start_period: 5s depends_on: migrate: condition: service_completed_successfully