perf: increase gunicorn workers to 4 with 120s timeout
All checks were successful
Deploy to Server / deploy (push) Successful in 1m56s

This commit is contained in:
爽哒哒
2026-03-21 11:28:51 +08:00
parent e29e9b3979
commit 0ecf0d8f7d

View File

@@ -2,7 +2,7 @@ services:
backend: backend:
build: ./backend build: ./backend
container_name: cywl-scoring-backend container_name: cywl-scoring-backend
command: sh -c "python manage.py collectstatic --noinput && python manage.py migrate && gunicorn --bind 0.0.0.0:8876 --access-logfile - --error-logfile - config.wsgi:application" command: sh -c "python manage.py collectstatic --noinput && python manage.py migrate && gunicorn --bind 0.0.0.0:8876 --workers 4 --timeout 120 --access-logfile - --error-logfile - config.wsgi:application"
volumes: volumes:
- ./backend:/app - ./backend:/app
- ./backend/media:/app/media - ./backend/media:/app/media