From 3b403cc352efacd9914546917f0e4442ff8256d1 Mon Sep 17 00:00:00 2001 From: CharaWein Date: Wed, 4 Nov 2026 20:33:15 +0300 Subject: [PATCH] =?UTF-8?q?reconciler:=20healthcheck=20=D0=BF=D0=BE=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D1=86=D0=B5=D1=81=D1=81=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compose.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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