Docker image with uWSGI and Nginx for applications in Python (as Flask) in a single container.
APACHE-2.0 License
Bot releases are visible (Hide)
Published by tiangolo almost 2 years ago
Highlights of this release:
python3.6-2022-11-25
and python2.7-2022-11-25
.2.0.20
. PR #127 by @tiangolo.Published by tiangolo over 4 years ago
1.17.10
, based on latest Debian, Buster. PR #82.Published by tiangolo over 4 years ago
2020-05-04
.Published by tiangolo over 5 years ago
/app/prestart.sh
script to run arbitrary code before starting the app (for example, Alembic - SQLAlchemy migrations). The documentation for the /app/prestart.sh
is in the main README. PR #59.Published by tiangolo over 5 years ago
The first release declared "stable"! 🎉 🍰 🌮
The image has proven to be stable for a long time now, and the API has been frozen (backwards compatible) for a long time too.
And now there are tests covering all the options ensuring stability, which is especially important after changes.
This version reflects the status of the project (actually for long ago) using "semantic versioning".
It also adds changes to:
/app/nginx.conf
file that overrides the generated one. PR #51.For more details, check the section in the docs: https://github.com/tiangolo/uwsgi-nginx-docker#overriding-nginx-configuration-completely
Published by tiangolo almost 6 years ago
Latest tag points now to Python 3.7.
New Travis integration, to monitor continuous building errors.
Published by tiangolo about 6 years ago
2018-09-22: New Python 3.7 versions, standard and Alpine based. Thanks to desaintmartin in this PR.
Bug fixes.
Published by tiangolo over 6 years ago
Published by tiangolo over 6 years ago
2018-06-22: Make uWSGI require an app to run, instead of going in "full dynamic mode" while there was an error. Supervisord doesn't terminate itself but tries to restart uWSGI and shows the errors. Uses need-app
as suggested by luckydonald in this comment.
2018-06-22: Correctly handled graceful shutdown of uWSGI and Nginx. Thanks to desaintmartin in this PR.
Published by tiangolo almost 7 years ago
Fix bug: multiple Nginx listen entries
For the details, check https://github.com/tiangolo/uwsgi-nginx-docker/pull/19 by jdoig
Published by tiangolo almost 7 years ago
Published by tiangolo almost 7 years ago
LISTEN_PORT
.Thanks to @tmshn in https://github.com/tiangolo/uwsgi-nginx-docker/pull/16
Published by tiangolo about 7 years ago
You can set a custom maximum upload file size using an environment variable NGINX_MAX_UPLOAD
, by default it has a value of 0
, that allows unlimited upload file sizes. This differs from Nginx's default value of 1 MB. It's configured this way because that's the simplest experience a developer that is not expert in Nginx would expect.
Published by tiangolo about 7 years ago
uwsgi.ini
file, and with that, change the default directory from /app
to something else, using the envirnoment variable UWSGI_INI
.Published by tiangolo about 7 years ago
latest
tag image, just to show a warning for those still using latest
for Python 2.7 web applications. As of now everyone should be using Python 3.In a future release it will point to python3.6
.
Published by tiangolo about 7 years ago
Now Supervisord will stop uWSGI processes on a SIGTERM
signal, like when you run docker stop container-name
.
Published by tiangolo about 7 years ago
Python 3.6 is now supported.
Check https://github.com/tiangolo/uwsgi-nginx-docker/pull/6 by @jrd .
Use it in your Dockerfile
as:
FROM tiangolo/uwsgi-nginx:python3.6
# Add your Dockerfile commands