From 65ec346c31fc07ccec988baaea61629e5fcd7f10 Mon Sep 17 00:00:00 2001 From: Anthony Lukach Date: Tue, 23 Apr 2024 14:33:38 -0700 Subject: [PATCH] Enable ability to customize concurrency of gunicorn processes (#184) Co-authored-by: Zac Deziel --- docker-compose.custom.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/docker-compose.custom.yml b/docker-compose.custom.yml index 09880d1..2da28e5 100644 --- a/docker-compose.custom.yml +++ b/docker-compose.custom.yml @@ -29,11 +29,7 @@ services: - PORT=8081 - ENVIRONMENT=local # https://github.com/tiangolo/uvicorn-gunicorn-docker#web_concurrency - - WEB_CONCURRENCY=10 - # https://github.com/tiangolo/uvicorn-gunicorn-docker#workers_per_core - # - WORKERS_PER_CORE=1 - # https://github.com/tiangolo/uvicorn-gunicorn-docker#max_workers - # - MAX_WORKERS=10 + - WEB_CONCURRENCY=${WEB_CONCURRENCY:-10} # Postgres connection - POSTGRES_USER=username - POSTGRES_PASS=password @@ -74,11 +70,7 @@ services: - HOST=0.0.0.0 - PORT=8082 # https://github.com/tiangolo/uvicorn-gunicorn-docker#web_concurrency - - WEB_CONCURRENCY=1 - # https://github.com/tiangolo/uvicorn-gunicorn-docker#workers_per_core - - WORKERS_PER_CORE=1 - # https://github.com/tiangolo/uvicorn-gunicorn-docker#max_workers - - MAX_WORKERS=10 + - WEB_CONCURRENCY=${WEB_CONCURRENCY:-10} # Postgres connection - POSTGRES_USER=username - POSTGRES_PASS=password @@ -127,11 +119,7 @@ services: - HOST=0.0.0.0 - PORT=8083 # https://github.com/tiangolo/uvicorn-gunicorn-docker#web_concurrency - - WEB_CONCURRENCY=10 - # https://github.com/tiangolo/uvicorn-gunicorn-docker#workers_per_core - # - WORKERS_PER_CORE=1 - # https://github.com/tiangolo/uvicorn-gunicorn-docker#max_workers - # - MAX_WORKERS=10 + - WEB_CONCURRENCY=${WEB_CONCURRENCY:-10} # Postgres connection - POSTGRES_USER=username - POSTGRES_PASS=password