update for image url

This commit is contained in:
Mohamed Nouffer
2022-11-05 14:31:55 +05:30
parent e43df5cf29
commit 1f49a1b038
8 changed files with 257 additions and 27 deletions

15
wait-for-postgres.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh
# wait-for-postgres.sh
set -e
host="$1"
shift
until PGPASSWORD=$POSTGRES_PASS psql -h "$host" -U "postgres" -c '\q'; do
>&2 echo "Postgres is unavailable - sleeping"
sleep 1
done
>&2 echo "Postgres is up - executing command"
exec "$@"