fix(deploy): tune gunicorn for sse traffic

This commit is contained in:
2026-04-30 10:04:41 +03:30
parent 0a328156fa
commit 4d82094c0b

View File

@@ -35,7 +35,13 @@ services:
command: > command: >
sh -c "python manage.py migrate && sh -c "python manage.py migrate &&
python manage.py collectstatic --noinput && python manage.py collectstatic --noinput &&
gunicorn config.wsgi:application --bind 0.0.0.0:8000" gunicorn config.wsgi:application
--bind 0.0.0.0:8000
--worker-class gthread
--workers 2
--threads 8
--timeout 120
--keep-alive 75"
expose: expose:
- "8000" - "8000"
depends_on: depends_on: