Skip to content

Commit

Permalink
increase number of threads
Browse files Browse the repository at this point in the history
  • Loading branch information
d2avids committed Aug 27, 2024
1 parent 2bb2b69 commit 0dfc8ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ RUN pip install -r requirements.txt --no-cache-dir

COPY . .

CMD ["gunicorn", "--bind", "0.0.0.0:8080", "--workers", "3", "--timeout", "360", "backend.wsgi"]
CMD ["sh", "-c", "gunicorn --bind 0.0.0.0:8080 --workers ${GUNICORN_WORKERS} --threads 2 --timeout ${GUNICORN_TIMEOUT} rso_backend.wsgi"]
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ services:
networks:
- internal
environment:
- GUNICORN_WORKERS=3
- GUNICORN_CMD_ARGS=--timeout 360
frontend:
image: teamcode01/lesya_and_moa_frontend:latest
Expand Down

0 comments on commit 0dfc8ca

Please sign in to comment.