mirror of
https://github.com/element-hq/element-docker-demo.git
synced 2026-01-25 06:26:58 +03:00
wait for a healthy postgres before trying to start apps
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user