|
|
|
@ -74,7 +74,6 @@ if [ ! -z "${DO_POSTGRES}" ]; then |
|
|
|
|
postgres:12) |
|
|
|
|
docker start ${CONTAINERID} |
|
|
|
|
trap "docker stop ${CONTAINERID}" EXIT |
|
|
|
|
|
|
|
|
|
# Wait for postgres to be ready. |
|
|
|
|
while true; do |
|
|
|
|
pg_isready -d mudbase -h localhost -p 9432 -U mudbase |
|
|
|
@ -86,7 +85,6 @@ if [ ! -z "${DO_POSTGRES}" ]; then |
|
|
|
|
POSTGRES_USER=mudbase POSTGRES_PASSWORD=mudbase POSTGRES_DATABASE=mudbase /docker-entrypoint.sh postgres & |
|
|
|
|
PID=$(echo $!) |
|
|
|
|
trap "kill $PID" EXIT |
|
|
|
|
|
|
|
|
|
# Wait for postgres to be ready. |
|
|
|
|
while true; do |
|
|
|
|
/usr/bin/pg_isready -d mudbase -h localhost -p 5432 -U mudbase |
|
|
|
|