Correct the docker compose

This commit is contained in:
Léo 2024-03-28 12:02:48 +00:00
parent 59b7d2a381
commit ba3b1aea8b

View file

@ -8,6 +8,8 @@ services:
POSTGRES_DB: court POSTGRES_DB: court
volumes: volumes:
- ./initdb/:/docker-entrypoint-initdb.d - ./initdb/:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
court: court:
build: . build: .
ports: ports:
@ -15,4 +17,5 @@ services:
environment: environment:
DB_HOST: db DB_HOST: db
depends_on: depends_on:
- db db:
condition: service_healthy