#!/bin/sh if [ "$1" = "runserver" ] then PORT="$2" [ -z "$PORT" ] && PORT=8000 EXPOSED=127.0.0.1:"$PORT" echo "expose as: $EXPOSED" exec docker-compose run -p "$EXPOSED":"$PORT" dev python src/manage.py runserver 0.0.0.0:"$PORT" else exec docker-compose run dev python src/manage.py "$@" fi