fix(deploy): tune gunicorn for sse traffic
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user