Fix healthcheck using wrong user
This commit is contained in:
parent
fbd26b3406
commit
9537f54aa3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user