feat: Add FastAPI s6 sidecar PoC

- Sidecar DragonflyDB as Redis replacement
- Run pytheus in multiprocessing mode with Redis backend
This commit is contained in:
2023-08-06 21:02:23 +02:00
commit 25edcd8ac4
8 changed files with 110 additions and 0 deletions

3
s6/run_fastapi Normal file
View File

@ -0,0 +1,3 @@
#!/command/execlineb -P
/bin/sh -c "cd /code && gunicorn app.main:app --workers 2 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:80"