Skip to content

Commit e0906e9

Browse files
committed
Add multiple workers to gunicorn
1 parent 306ef43 commit e0906e9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: docker/entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ echo "Inserting default data"
1313
python manage.py insert_default_data
1414

1515
echo "Starting web server"
16-
gunicorn --bind 0.0.0.0:8000 --pythonpath /app/squest Squest.wsgi
16+
gunicorn --bind 0.0.0.0:8000 --workers ${GUNICORN_WORKERS:-4} --pythonpath /app/squest Squest.wsgi

Diff for: docker/environment_variables/squest.env

+2
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ REDIS_CACHE_HOST=redis-cache
3333

3434
WAIT_HOSTS=db:3306,rabbitmq:5672
3535
WAIT_TIMEOUT=60
36+
37+
GUNICORN_WORKERS=4

0 commit comments

Comments
 (0)