Docker image with Uvicorn managed by Gunicorn for high-performance Starlette web applications in Python with performance auto-tuning.
MIT License
Bot releases are hidden (Show)
Published by tiangolo almost 2 years ago
Highlights of this release:
python3.6-2022-11-25
.Published by tiangolo over 4 years ago
slim
version. PR #18.WORKER_CLASS
TIMEOUT
KEEP_ALIVE
GRACEFUL_TIMEOUT
ACCESS_LOG
ERROR_LOG
GUNICORN_CMD_ARGS
MAX_WORKERS
PRE_START_PATH
env var. PR #13.Published by tiangolo over 5 years ago
/start-reload.sh
, check the updated documentation. PR #6 in parent image.Published by tiangolo over 5 years ago
WORKERS_PER_CORE
by default to 1
, as it shows to have the best performance on benchmarks.WEB_CONCURRENCY
is not set, to a minimum of 2 workers. This is to avoid bad performance and blocking applications (server application) on small machines (server machine/cloud/etc). This can be overridden using WEB_CONCURRENCY
. This applies for example in the case where WORKERS_PER_CORE
is set to 1
(the default) and the server has only 1 CPU core. PR #4 and PR #5 in parent image.Published by tiangolo over 5 years ago
From upstream image: https://github.com/tiangolo/uvicorn-gunicorn-docker
/start.sh
run independently, reading and generating used default environment variables. And remove /entrypoint.sh
as it doesn't modify anything in the system, only reads environment variables. PR #4.Published by tiangolo over 5 years ago
Add support for /app/prestart.sh
.