From ff4d26cdc69f80191a013ff2d86536e3f02b7fbd Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Sun, 2 Mar 2025 17:24:56 +0330 Subject: [PATCH] lower workers --- backend/dockerfile | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/dockerfile b/backend/dockerfile index 2d78688..a52545a 100644 --- a/backend/dockerfile +++ b/backend/dockerfile @@ -14,4 +14,4 @@ COPY . /app/ CMD ["sh", "-c", "python manage.py makemigrations && \ python manage.py migrate && \ python manage.py collectstatic --no-input && \ - gunicorn core.wsgi:application --bind 0.0.0.0:8000 --workers 5"] \ No newline at end of file + gunicorn core.wsgi:application --bind 0.0.0.0:8000 --workers 3"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index c023ea0..66ea3cc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,7 +24,7 @@ services: [ "sh", "-c", - "python manage.py migrate && python manage.py collectstatic --no-input && gunicorn core.wsgi:application --bind 0.0.0.0:8000 --workers 5", + "python manage.py migrate && python manage.py collectstatic --no-input && gunicorn core.wsgi:application --bind 0.0.0.0:8000 --workers 3", ] networks: - default