From f59326a3cc8a37b4b0797dd3c04a0c1512d09a18 Mon Sep 17 00:00:00 2001 From: James Kent Date: Wed, 25 Oct 2023 00:05:18 -0500 Subject: [PATCH] use uvicorn workers --- store/docker-compose.dev.yml | 2 +- store/docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/store/docker-compose.dev.yml b/store/docker-compose.dev.yml index ffd141136..59fd4dfe4 100644 --- a/store/docker-compose.dev.yml +++ b/store/docker-compose.dev.yml @@ -7,7 +7,7 @@ services: neurostore: expose: - "8000" - command: /usr/local/bin/gunicorn -w 1 -b :8000 neurostore.core:app --log-level debug --timeout 300 --reload + command: /usr/local/bin/gunicorn -w 1 -b :8000 neurostore.core:connexion_app --worker-class uvicorn.workers.UvicornWorker --log-level debug --timeout 300 --reload restart: "no" stdin_open: true # docker run -i tty: true # docker run -t diff --git a/store/docker-compose.yml b/store/docker-compose.yml index 0ec3300f3..593ea0970 100644 --- a/store/docker-compose.yml +++ b/store/docker-compose.yml @@ -14,7 +14,7 @@ services: - ./:/neurostore - ${FILE_DIR}:/file-data - ${ACE_DIR}:/ace - command: /usr/local/bin/gunicorn -w 8 -b :8000 neurostore.core:app --log-level debug --timeout 120 + command: /usr/local/bin/gunicorn -w 8 -b :8000 neurostore.core:connexion_app --worker-class uvicorn.workers.UvicornWorker --log-level debug --timeout 120 env_file: - .env container_name: neurostore