lifecycle: Update postgres healthcheck for compose with user information (#3143)

Update postgres healthcheck with user information
This commit is contained in:
Andre Mainka 2022-06-24 12:02:05 +02:00 committed by GitHub
parent a76c39aff9
commit 340faf5341
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ services:
image: postgres:12-alpine image: postgres:12-alpine
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: ["CMD", "pg_isready"] test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
start_period: 20s start_period: 20s
interval: 30s interval: 30s
retries: 5 retries: 5