Docker compose for Django+Redis+PostgreSQL+Celery
All commands you will be use are in commands.txt
~ docker-compose build ~ docker-compose run --rm app django-admin startproject ProjectName location ~ docker-compose up
~ python manage.py shell ~ from newapp.tasks import add ~ task = add.delay(2, 2)
~ docker exec -it django_app /bin/bash ~ docker exec -it django_app sh
Setting the non-empty value of PYTHONONUNBUFFERED means that the python output is transmitted directly to the terminal without being buffered and that allows displaying the application's output in real-time.