Skip to content

Commit

Permalink
Enable ability to customize concurrency of gunicorn processes (#184)
Browse files Browse the repository at this point in the history
Co-authored-by: Zac Deziel <zachary.deziel@gmail.com>
  • Loading branch information
alukach and zacharyDez committed Apr 23, 2024
1 parent 018e1ce commit 65ec346
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions docker-compose.custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 65ec346

Please sign in to comment.