Merge pull request #1926 from danez/healthcheck-pg

Add healthcheckscript for postgres
This commit is contained in:
Alexandre
2025-06-24 13:32:43 +02:00
committed by GitHub
7 changed files with 25 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bashio
# shellcheck shell=bash
POSTGRES_USER="$(bashio::config "POSTGRES_USER" "postgres")"
POSTGRES_DB="$(bashio::config "POSTGRES_DB" "$POSTGRES_USER")"
pg_isready --dbname="${POSTGRES_DB}" --username="${POSTGRES_USER}" || exit $?;