Skip to content

Commit

Permalink
adjust postgres healthcheck
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L. <[email protected]>
  • Loading branch information
szaimen committed Dec 5, 2024
1 parent 247f085 commit c130cc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Containers/postgresql/healthcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

test -f "/mnt/data/backup-is-running" && exit 0

psql -d "postgresql://oc_$POSTGRES_USER:$POSTGRES_PASSWORD@127.0.0.1:11000/$POSTGRES_DB" -c "select now()" && exit 0

psql -d "postgresql://oc_$POSTGRES_USER:$POSTGRES_PASSWORD@127.0.0.1:5432/$POSTGRES_DB" -c "select now()" || exit 1

0 comments on commit c130cc0

Please sign in to comment.