3 if [ "$1" = "runserver" ]
6 [ -z "$PORT" ] && PORT=8000
7 EXPOSED=127.0.0.1:"$PORT"
8 echo "expose as: $EXPOSED"
9 exec docker-compose run -p "$EXPOSED":"$PORT" dev python src/manage.py runserver 0.0.0.0:"$PORT"
11 exec docker-compose run dev python src/manage.py "$@"