mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
fix: add explicit db name and user to pg_isready check
commit783fd4d5f3Author: forehalo <forehalo@gmail.com> Date: Mon Dec 9 20:55:43 2024 +0800 chore: fix lint error commit0cf3740488Author: Charles SENGES <charles.senges.io+github@protonmail.com> Date: Sun Dec 8 01:05:36 2024 +0100 fix(compose.yaml): add explicit db name and user to pg_isready check
This commit is contained in:
3
.github/deployment/self-host/compose.yaml
vendored
3
.github/deployment/self-host/compose.yaml
vendored
@@ -59,7 +59,8 @@ 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