docker compose run --rm --service-ports web python manage.py runserver

Category: Docker

docker compose run --rm --service-ports web python manage.py runserver

Run a one-off command publishing service ports

--service-ports maps the service's published ports onto the host, letting a dev server accept external connections. --rm removes the container when the command exits. Ideal for migrations, seeds, or interactive tooling against the stack.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.