Install Django, Celery, Celery Beat and Redis in a single docker container. Use supervisor to manage multiple processes.
Multiple services/processes should be installed in multiple containers using docker-compose.
I had to use a single container for a particular case.
python3.11 -m venv venv --upgrade-deps
source ./venv/bin/activate
python manage.py migrate
python manage.py createsuperuser
docker build -t supervisor-django:1.0 .
docker run -p 8000:8000 --name supervisor-django-container supervisor-django:1.0
docker stop supervisor-django-container
docker rm -f supervisor-django-container