From e6f8fdfc5b8ad28b7e1394c68789117deee9b0ee Mon Sep 17 00:00:00 2001 From: Ezra Buehler Date: Wed, 11 Sep 2024 23:24:00 +0200 Subject: [PATCH] Set number of Gunicorn workers to 1 in Docker image We currently do not fully support multiple workers. For more info, see: https://github.com/UpstreamDataInc/goosebit/issues/125 This configuration can be overridden by setting the `GUNICORN_CMD_ARGS` environment variable. --- docker/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 9a2fc344..e10047b2 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -16,7 +16,9 @@ EXPOSE 60053 USER goosebit -ENV GUNICORN_CMD_ARGS="--workers 2 --enable-stdio-inheritance" +# We currently do not fully support multiple workers. For more information, see: +# https://github.com/UpstreamDataInc/goosebit/issues/125 +ENV GUNICORN_CMD_ARGS="--workers 1 --enable-stdio-inheritance" CMD aerich --config /aerich.toml upgrade && \ gunicorn --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:60053 goosebit:app