From 071be509774450796f125e307fb753e9a878b454 Mon Sep 17 00:00:00 2001 From: DevOps Date: Sat, 20 Jun 2026 18:48:34 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20relax=20api=E2=86=92postgres=20dependenc?= =?UTF-8?q?y=20to=20service=5Fstarted+restart?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit depends_on: condition: service_healthy on the api service was failing during docker compose up because postgres hasn't completed its healthcheck yet (start_period=30s). Changed to condition: service_started with restart: true so the API starts as soon as postgres is running and retries if the DB isn't ready yet. The .NET backend already handles transient DB connection failures. --- compose.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index 7cb5f1a..6a190b5 100644 --- a/compose.yaml +++ b/compose.yaml @@ -63,7 +63,8 @@ services: - host.docker.internal:host-gateway depends_on: postgres: - condition: service_healthy + condition: service_started + restart: true healthcheck: test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8080/health/live || exit 1"] interval: 30s