reconciler: healthcheck по процессу

This commit is contained in:
2026-11-04 20:33:15 +03:00
parent a9134ec4fa
commit 3b403cc352
+7 -2
View File
@@ -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