debug fix v15

This commit is contained in:
Ivan Nikolaev-Axenov 2025-05-30 17:05:35 +03:00
parent 59759c4151
commit 4a997ce387
2 changed files with 9 additions and 0 deletions

View file

@ -6,6 +6,13 @@ until pg_isready -U clearing -h db -p 5432 -d clearing -t 1; do
done
echo "PSQL version: $(psql --version)"
echo "DB password is $PGPASSWORD"
echo "Database connection test:"
psql -U clearing -h db -p 5432 -d clearing -c "SELECT 'Database is connected!' AS status"
echo "Executing SQL file:"
cat init.sql
echo "Updating database"
psql -U clearing -h db -p 5432 -d clearing -f init.sql

View file

@ -15,6 +15,8 @@ services:
db-updater:
build: db-updater
environment:
- PGPASSWORD=Aa111111
depends_on:
db:
condition: service_healthy