refactor: use Depends for settings and session_local (#59)

This commit is contained in:
Felix Spöttel
2024-01-01 14:28:19 +01:00
committed by GitHub
parent 557de5a442
commit 3559aa5936
20 changed files with 207 additions and 122 deletions

View File

@@ -12,7 +12,7 @@ services:
- "--entrypoints.web.address=:80"
web:
command: bash -c "alembic upgrade head && uvicorn app.web:app --reload --host ${HOST:-0.0.0.0} --port ${PORT:-8000} --log-level info"
command: bash -c "alembic upgrade head && uvicorn app.web:app --reload --host ${HOST:-0.0.0.0} --port ${PORT:-8000} --log-level info --factory"
# NOTE: the docker on mac mount adapter (virtioFS) does not support flock.
# this can cause the sqlite database to corrupt when written from worker <> api simultaneously.
volumes: