We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9d4d13 commit bdef792Copy full SHA for bdef792
1 file changed
entrypoint.sh
@@ -1,8 +1,8 @@
1
#!/bin/sh
2
3
-if [ "$DATABASE" = "postgres" ]; then
+if [ "$DJANGO_DATABASE_ENGINE" = "django.db.backends.postgresql" ]; then
4
echo "Waiting for postgres..."
5
- while ! nc -z $SQL_HOST $SQL_PORT; do
+ while ! nc -z $DJANGO_DATABASE_HOST "${DJANGO_DATABASE_PORT:-5432}"; do
6
sleep 0.1
7
done
8
0 commit comments