From ba3b1aea8b7a264fba46c3fd6f946ff4da2d8a7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o?= Date: Thu, 28 Mar 2024 12:02:48 +0000 Subject: [PATCH] Correct the docker compose --- docker-compose.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index a8d9e2c..86bd9f7 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -8,6 +8,8 @@ services: POSTGRES_DB: court volumes: - ./initdb/:/docker-entrypoint-initdb.d + healthcheck: + test: ["CMD-SHELL", "pg_isready"] court: build: . ports: @@ -15,4 +17,5 @@ services: environment: DB_HOST: db depends_on: - - db + db: + condition: service_healthy