fix postgres readiness check
This commit is contained in:
parent
d44cd78611
commit
a8c6c88f6d
2 changed files with 1 additions and 2 deletions
|
|
@ -30,7 +30,6 @@
|
|||
export PGDATA="$REPO_ROOT/.postgres"
|
||||
export PGHOST="$PGDATA"
|
||||
export PGUSER="postgres"
|
||||
export PGDATABASE="rabbigerzi"
|
||||
|
||||
if [ ! -d "$PGDATA" ]; then
|
||||
echo "[pg] initializing cluster at $PGDATA"
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ processes:
|
|||
signal: 2
|
||||
readiness_probe:
|
||||
exec:
|
||||
command: pg_isready -h "$PGDATA"
|
||||
command: pg_isready -h "$PGDATA" -d postgres -U postgres
|
||||
initial_delay_seconds: 1
|
||||
period_seconds: 2
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue