fix postgres readiness check

This commit is contained in:
Yisroel Baum 2026-06-13 21:22:55 +03:00
parent d44cd78611
commit a8c6c88f6d
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
2 changed files with 1 additions and 2 deletions

View file

@ -30,7 +30,6 @@
export PGDATA="$REPO_ROOT/.postgres" export PGDATA="$REPO_ROOT/.postgres"
export PGHOST="$PGDATA" export PGHOST="$PGDATA"
export PGUSER="postgres" export PGUSER="postgres"
export PGDATABASE="rabbigerzi"
if [ ! -d "$PGDATA" ]; then if [ ! -d "$PGDATA" ]; then
echo "[pg] initializing cluster at $PGDATA" echo "[pg] initializing cluster at $PGDATA"

View file

@ -7,7 +7,7 @@ processes:
signal: 2 signal: 2
readiness_probe: readiness_probe:
exec: exec:
command: pg_isready -h "$PGDATA" command: pg_isready -h "$PGDATA" -d postgres -U postgres
initial_delay_seconds: 1 initial_delay_seconds: 1
period_seconds: 2 period_seconds: 2