fix: pg_isready missing -d flag causing init container loop

This commit is contained in:
dvirlabs 2026-03-22 08:34:55 +02:00
parent be1226c59e
commit b5a7d339ce

View File

@ -25,7 +25,7 @@ spec:
- -c
- |
echo "Waiting for database to be ready..."
until pg_isready -h $DB_HOST -U $DB_USER; do
until pg_isready -h $DB_HOST -U $DB_USER -d $DB_NAME; do
echo "Database not ready, waiting..."
sleep 2
done