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 EXPOSE 8002
# Default CMD (compose will override with your shell that migrates, collectstatic, and runs gunicorn: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: > command: >
sh -c "python manage.py migrate && sh -c "python manage.py migrate &&
python manage.py collectstatic --noinput && 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: volumes:
- static_data:/app/static - static_data:/app/static
- media_data:/app/media - media_data:/app/media