Permalink
Browse files

Add using of PGPASSWORD for psql

Given example is not complete at least for official postgres image. I have added setting of psql password over POSTGRES_PASSWORD env variable.
  • Loading branch information...
KenanBek authored and joaofnfernandes committed Mar 20, 2018
1 parent 1980456 commit e01ab90c07b8a8ab7cc9d3a4afc77a1c4c20eaa6
Showing with 1 addition and 1 deletion.
  1. +1 −1 compose/startup-order.md
@@ -63,7 +63,7 @@ script:
shift
cmd="$@"
until psql -h "$host" -U "postgres" -c '\q'; do
until PGPASSWORD=$POSTGRES_PASSWORD psql -h "$host" -U "postgres" -c '\q'; do
>&2 echo "Postgres is unavailable - sleeping"
sleep 1
done

0 comments on commit e01ab90

Please sign in to comment.