1👍
✅
Maybe python3 manage.py runserver 127.0.0.1:80
already run, just the log did not be flushed.
One option could be add PYTHONUNBUFFERED=1
to docker-compose.yaml
to let python not buffer output:
services:
backend:
environment:
- PYTHONUNBUFFERED=1
build:
context: .
dockerfile: backend.Dockerfile
Or add tty: true
to docker-compose.yaml
to change output to line buffered:
services:
backend:
tty: true
Then, check the log to see if any output could help you debug.
Source:stackexchange.com