From 1ca5d894fadc2cc2c435ff7adf9887bc53ebb5e7 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Fri, 14 Nov 2025 12:37:11 +0100 Subject: [PATCH] Fix probod kill because postgres not ready Signed-off-by: Bryan Frimin --- compose.prod.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/compose.prod.yaml b/compose.prod.yaml index e34d25549..97c2b9cd5 100644 --- a/compose.prod.yaml +++ b/compose.prod.yaml @@ -45,10 +45,15 @@ services: - "8443:8443" volumes: - "probo-data:/data" - depends_on: + networks: - postgres - - minio - - chrome + depends_on: + postgres: + condition: service_healthy + minio: + condition: service_started + chrome: + condition: service_started postgres: @@ -66,6 +71,11 @@ services: environment: POSTGRES_USER: "postgres" POSTGRES_PASSWORD: "postgres" + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres"] + interval: 5s + timeout: 5s + retries: 5 minio: image: "quay.io/minio/minio"