mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-13 16:16:46 +08:00
fix(compose.yaml): add explicit db name and user to pg_isready check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user