mirror of
https://github.com/MatthewL246/pretendo-docker.git
synced 2026-04-26 02:17:57 -05:00
Fix the Postgres password script order
This commit is contained in:
parent
48226264be
commit
88c501f505
|
|
@ -11,11 +11,11 @@ fi
|
|||
. "$git_base/environment/postgres.env"
|
||||
. "$git_base/environment/postgres.local.env"
|
||||
|
||||
docker compose up -d postgres
|
||||
|
||||
while ! docker compose exec postgres psql -v ON_ERROR_STOP=1 -U "$POSTGRES_USER" -c "\l"; do
|
||||
echo "Waiting for PostgreSQL to start..."
|
||||
sleep 1
|
||||
done
|
||||
|
||||
docker compose up -d postgres
|
||||
|
||||
docker compose exec postgres psql -U "$POSTGRES_USER" -c "ALTER USER $POSTGRES_USER PASSWORD '$POSTGRES_PASSWORD';"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user