jpbruinsslot / docker-django

A project to get you started with Docker and Django.
MIT License
179 stars 62 forks source link

Question: why install uWSGI in the webapp and no the webserver? #19

Closed dmenisdev closed 4 years ago

dmenisdev commented 4 years ago

Question: why install uWSGI in the webapp and no the webserver?

jpbruinsslot commented 4 years ago

I'm not sure if I understand your question correctly. But since uwsgi is the application server that actually loads and runs the webapp, in my opinion it should be packaged along side the webapp. Nginx here serves as a reverse proxy that relays requests to uwsgi. Hope that answers your question, and reiterate what is said in the readme, I don't claim that this is a 100% correct setup, there are always different opinions, considerations, and methods and I advice you to seek out different setups to see what works best for your use case. Cheers

dmenisdev commented 4 years ago

Thanks I think you are correct it is the only logical place and probably the only option :).