From fc45493546152ac8bf2cda23610b41125f4b58a6 Mon Sep 17 00:00:00 2001 From: Juho Inkinen <34240031+juhoinkinen@users.noreply.github.com> Date: Fri, 12 Apr 2024 12:59:35 +0300 Subject: [PATCH] Use uvicorn workers in docker-compose setup --- docker-compose.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index aed2211ec..efe40d0c1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,17 @@ services: volumes: - ${ANNIF_PROJECTS}:/annif-projects user: ${MY_UID}:${MY_GID} - command: ["gunicorn", "annif:create_app()", "--bind", "0.0.0.0:8000", "--timeout", "600"] + command: + [ + "gunicorn", + "-k", + "uvicorn.workers.UvicornWorker", + "annif:create_app()", + "--bind", + "0.0.0.0:8000", + "--timeout", + "600" + ] nginx: image: nginx