Docker Community Forums

Share and learn in the Docker community.

How to use django services in Docker?

They should be online all the time. My jango app has 5 external services working with it. The all are a part of the django app and put them in 5 different containers doesn’t seem reasonable for me.

How can I activate them after the startup? They all wait for SIGTERM to exit, so basically each one of them need a terminal or smth. Thank you.

gunicorn -D --config ./gunicorn.conf.py core.wsgi:application
python manage.py telegram
python -u socketshark.py
python -u manage.py run_....py
python-u ....py
and so on...