Fix healthcheck using wrong user

This commit is contained in:
Elliot Matson 2022-11-01 21:26:30 -05:00 committed by GitHub
parent fbd26b3406
commit 9537f54aa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ version: '3.8'
x-common: x-common:
database: &db-environment database: &db-environment
POSTGRES_DB: database POSTGRES_DB: database
POSTGRES_USER: postgres POSTGRES_USER: &pg-user postgres
POSTGRES_PASSWORD: DaVinci POSTGRES_PASSWORD: DaVinci
TZ: America/Chicago TZ: America/Chicago
POSTGRES_LOCATION: &db-location "~/db:/var/lib/postgresql/data" POSTGRES_LOCATION: &db-location "~/db:/var/lib/postgresql/data"
@ -37,7 +37,7 @@ services:
volumes: volumes:
- *db-location - *db-location
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready"] test: ["CMD", "pg_isready", "-U", *pg-user]
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5