mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat(docker): add gunicorn support & production default
Supply FASTAPI_BACKEND=gunicorn and FASTAPI_WORKERS=<threads_num> to docker-compose up to use the gunicorn backend. This is defaulted in production to gunicorn, but FASTAPI_WORKERS should definitely be configured by any production deployment. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
28c4e9697b
commit
927f5e8567
5 changed files with 28 additions and 1 deletions
|
@ -86,6 +86,7 @@ pytest-asyncio = { version = "0.15.1", python = "^3.9" }
|
|||
pytest-cov = { version = "2.12.1", python = "^3.9" }
|
||||
pytest-tap = { version = "3.2", python = "^3.9" }
|
||||
uvicorn = { version = "0.15.0", python = "^3.9" }
|
||||
gunicorn = { version = "20.1.0", python = "^3.9" }
|
||||
|
||||
[tool.poetry.scripts]
|
||||
aurweb-git-auth = "aurweb.git.auth:main"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue