add prod and dev compose

This commit is contained in:
2026-08-02 05:09:00 +05:00
parent afb14038d9
commit 890b1aef34
8 changed files with 253 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
set -e
if [ -n "$POSTGRES_HOST" ]; then
echo "Waiting for postgres at $POSTGRES_HOST:${POSTGRES_PORT:-5432}..."
while ! nc -z "$POSTGRES_HOST" "${POSTGRES_PORT:-5432}"; do
sleep 0.2
done
echo "PostgreSQL is up"
fi
echo "Applying database migrations..."
python manage.py migrate --noinput
exec "$@"