Adjust the number of workers
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ekaropolus 2025-09-18 19:47:42 -06:00
parent e29b29bf0a
commit 438fd1c313
2 changed files with 2 additions and 2 deletions

View File

@ -31,4 +31,4 @@ COPY . .
EXPOSE 8002
# Default CMD (compose will override with your shell that migrates, collectstatic, and runs gunicorn:8002)
CMD ["gunicorn", "polisplexity.wsgi:application", "--bind", "0.0.0.0:8002", "--workers=3", "--timeout=180"]
CMD ["gunicorn", "polisplexity.wsgi:application", "--bind", "0.0.0.0:8002", "--workers=4", "--timeout=180"]

View File

@ -31,7 +31,7 @@ services:
command: >
sh -c "python manage.py migrate &&
python manage.py collectstatic --noinput &&
gunicorn polisplexity.wsgi:application --bind 0.0.0.0:8002 --workers=2 --timeout=180"
gunicorn polisplexity.wsgi:application --bind 0.0.0.0:8002 --workers=4 --timeout=180"
volumes:
- static_data:/app/static
- media_data:/app/media