#!/bin/sh # Wait for the database to be available while ! nc -z db 5432; do sleep 0.1 done # Apply database migrations python manage.py migrate # Collect static files python manage.py collectstatic --no-input # Start the server python manage.py runserver 0.0.0.0:8000