Skip to content

Commit bdef792

Browse files
committed
Fix postgres environment variables
1 parent b9d4d13 commit bdef792

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/sh
22

3-
if [ "$DATABASE" = "postgres" ]; then
3+
if [ "$DJANGO_DATABASE_ENGINE" = "django.db.backends.postgresql" ]; then
44
echo "Waiting for postgres..."
5-
while ! nc -z $SQL_HOST $SQL_PORT; do
5+
while ! nc -z $DJANGO_DATABASE_HOST "${DJANGO_DATABASE_PORT:-5432}"; do
66
sleep 0.1
77
done
88

0 commit comments

Comments
 (0)