diff --git a/docker-compose.yml b/docker-compose.yml index 62e6033..1c4de5b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: - POSTGRES_DB=postgres healthcheck: #CHANGE 1: this command checks if the database is ready, right on the source db server - test: [ "CMD-SHELL", "pg_isready" ] + test: ["CMD-SHELL", "pg_isready -d postgres -U postgres"] interval: 1s timeout: 1s retries: 5