feat: more workers

This commit is contained in:
2026-05-14 21:50:53 +03:00
parent 75362b07ae
commit 20ddb196ff
2 changed files with 3 additions and 3 deletions

View File

@@ -25,5 +25,5 @@ ENV PATH="/app/.venv/bin:$PATH" \
EXPOSE 8003
#CMD ["sh", "-c", "granian --interface asgi ${APP_MODULE:-src.main:app} --host ${APP_HOST:-0.0.0.0} --port ${APP_PORT:-8003} --workers ${APP_WORKERS:-1} --loop uvloop"]
CMD ["sh", "-c", "python -m granian --interface asgi ${APP_MODULE:-src.main:app} --host ${APP_HOST:-0.0.0.0} --port ${APP_PORT:-8003} --workers ${APP_WORKERS:-1} --loop uvloop"]
#CMD ["sh", "-c", "granian --interface asgi ${APP_MODULE:-src.main:app} --host ${APP_HOST:-0.0.0.0} --port ${APP_PORT:-8003} --workers ${APP_WORKERS:-3} --loop uvloop"]
CMD ["sh", "-c", "python -m granian --interface asgi ${APP_MODULE:-src.main:app} --host ${APP_HOST:-0.0.0.0} --port ${APP_PORT:-8003} --workers ${APP_WORKERS:-3} --loop uvloop"]

View File

@@ -11,7 +11,7 @@ services:
APP_MODULE: "src.main:app"
APP_HOST: "0.0.0.0"
APP_PORT: "8003"
APP_WORKERS: "1"
APP_WORKERS: "3"
env_file:
- .env
depends_on: