Skip to content

Commit

Permalink
Set number of Gunicorn workers to 1 in Docker image
Browse files Browse the repository at this point in the history
We currently do not fully support multiple workers. For more info, see:
#125

This configuration can be overridden by setting the `GUNICORN_CMD_ARGS`
environment variable.
  • Loading branch information
easybe committed Sep 12, 2024
1 parent 0f12c21 commit e6f8fdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 </dev/null

0 comments on commit e6f8fdf

Please sign in to comment.