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:
|
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user