wait for a healthy postgres before trying to start apps

This commit is contained in:
Matthew Hodgson
2024-11-05 16:26:46 +00:00
parent 827c09394c
commit f91265addf

View File

@@ -151,7 +151,7 @@ services:
redis: redis:
condition: service_started condition: service_started
postgres: postgres:
condition: service_started condition: service_healthy
init: init:
condition: service_completed_successfully condition: service_completed_successfully
@@ -214,7 +214,7 @@ services:
command: "server --config=/data/config.yaml" command: "server --config=/data/config.yaml"
depends_on: depends_on:
postgres: postgres:
condition: service_started condition: service_healthy
init: init:
condition: service_completed_successfully condition: service_completed_successfully