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