Skip to content

Commit

Permalink
Use uvicorn workers in docker-compose setup
Browse files Browse the repository at this point in the history
  • Loading branch information
juhoinkinen committed Apr 12, 2024
1 parent 8a2d0d5 commit fc45493
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fc45493

Please sign in to comment.