diff --git a/docker-compose.yml b/docker-compose.yml index e50e567..4e8863d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,7 +11,7 @@ services: volumes: - postgres-data:/var/lib/postgresql/data healthcheck: - test: pg_isready + test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ] interval: 5s timeout: 2s retries: 5