From f91265addf5c02d2f59aaa86753e8d5855d6cf5e Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Tue, 5 Nov 2024 16:26:46 +0000 Subject: [PATCH] wait for a healthy postgres before trying to start apps --- compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compose.yml b/compose.yml index 52b4f0c..01f55e3 100644 --- a/compose.yml +++ b/compose.yml @@ -151,7 +151,7 @@ services: redis: condition: service_started postgres: - condition: service_started + condition: service_healthy init: condition: service_completed_successfully @@ -214,7 +214,7 @@ services: command: "server --config=/data/config.yaml" depends_on: postgres: - condition: service_started + condition: service_healthy init: condition: service_completed_successfully