fix(compose.yaml): add explicit db name and user to pg_isready check

This commit is contained in:
Charles SENGES
2024-12-08 01:05:36 +01:00
parent 7225f59138
commit 0cf3740488
+1 -1
View File
@@ -59,7 +59,7 @@ services:
# or you may add 'POSTGRES_HOST_AUTH_METHOD=trust' to ignore postgres security policy
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test: ['CMD-SHELL', 'pg_isready']
test: ['CMD', 'pg_isready', '-U', "${DB_USERNAME}", '-d', "${DB_DATABASE:-affine}"]
interval: 1m
start_interval: 10s
start_period: 1m