Fix wrong psql healthcheck user

This commit is contained in:
Dariusz Niemczyk 2023-11-06 20:50:00 +01:00
parent d71885d264
commit 2892923389
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ services:
- POSTGRES_DB=postgres - POSTGRES_DB=postgres
healthcheck: healthcheck:
#CHANGE 1: this command checks if the database is ready, right on the source db server #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 interval: 1s
timeout: 1s timeout: 1s
retries: 5 retries: 5