debug fix v15
This commit is contained in:
parent
59759c4151
commit
4a997ce387
2 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ services:
|
|||
|
||||
db-updater:
|
||||
build: db-updater
|
||||
environment:
|
||||
- PGPASSWORD=Aa111111
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue