fix(deploy): tune gunicorn for sse traffic
This commit is contained in:
@@ -32,10 +32,16 @@ services:
|
||||
volumes:
|
||||
- static_data:/app/static
|
||||
- media_data:/app/media
|
||||
command: >
|
||||
sh -c "python manage.py migrate &&
|
||||
python manage.py collectstatic --noinput &&
|
||||
gunicorn config.wsgi:application --bind 0.0.0.0:8000"
|
||||
command: >
|
||||
sh -c "python manage.py migrate &&
|
||||
python manage.py collectstatic --noinput &&
|
||||
gunicorn config.wsgi:application
|
||||
--bind 0.0.0.0:8000
|
||||
--worker-class gthread
|
||||
--workers 2
|
||||
--threads 8
|
||||
--timeout 120
|
||||
--keep-alive 75"
|
||||
expose:
|
||||
- "8000"
|
||||
depends_on:
|
||||
|
||||
Reference in New Issue
Block a user