mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Docker: add .env configurable FASTAPI_BACKEND
By default we now use uvicorn because it has a much better developer feedback out of the box. We'll work on hypercorn logging, but for now, hypercorn is usable via: `docker-compose --env-file docker/hypercorn.env up nginx`. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
495dd2d821
commit
df161ef38e
6 changed files with 23 additions and 11 deletions
|
@ -124,9 +124,9 @@ services:
|
|||
environment:
|
||||
- AUR_CONFIG=conf/config
|
||||
entrypoint: /docker/fastapi-entrypoint.sh
|
||||
command: /docker/scripts/run-fastapi.sh
|
||||
command: /docker/scripts/run-fastapi.sh "${FASTAPI_BACKEND}"
|
||||
healthcheck:
|
||||
test: "bash /docker/health/fastapi.sh"
|
||||
test: "bash /docker/health/fastapi.sh ${FASTAPI_BACKEND}"
|
||||
interval: 2s
|
||||
timeout: 30s
|
||||
depends_on:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue