-
Notifications
You must be signed in to change notification settings - Fork 60
Not production ready #5
Comments
You are correct - when using Django in production, you normally run it with something like uWSGI. When deploying from containers, this doesn't change. That does not mean that the image is not production ready, but rather that it is expected you use the django image in conjunction with a correctly configured web server. |
Good point. This should definitely be called out in the For the Apache + mod_wsgi option, one could read up about it from the creator himself http://blog.dscpl.com.au/2014/12/hosting-python-wsgi-applications-using.html. Maybe we reference that page. Maybe we enhance the existing The uWSGI and Gunicorn options would just require additional python packages to install and some recommendations on how to override the CMD to utilize them (I think)? |
Filed an issue so we keep track of it: docker-library/docs#189 👍 |
@tianon beating me to it, TSKTSK 🐌 |
@Moghedrin no, adding a reverse proxy doesn't change that. |
@tback My brain had a dump on me - it hadn't had it's coffee yet. I said nginx, what I meant to say was "properly configured webserver". You're completely correct in that nginx, while helpful in general, would not be the solution here. I'll edit my comment accordingly! +1 on adding examples of configuring the image to sit behind one of these webservers in the django image documentation. |
The django documentation clearly states not use runserver in production:
The text was updated successfully, but these errors were encountered: