From 19c11944bcf6f54ab1092e821bcf31d4e5bee35f Mon Sep 17 00:00:00 2001 From: Stan Girard Date: Tue, 20 Feb 2024 19:52:14 -0800 Subject: [PATCH] feat: implement elasticache (#2234) # Description Please include a summary of the changes and the related issue. Please also include relevant motivation and context. ## Checklist before requesting a review Please delete options that are not relevant. - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented hard-to-understand areas - [ ] I have ideally added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged ## Screenshots (if appropriate): --- .env.example | 2 -- backend/celery_config.py | 4 ++-- docker-compose.dev.yml | 2 +- docker-compose.yml | 1 - 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.env.example b/.env.example index b32122ca9..a3ae74e9d 100644 --- a/.env.example +++ b/.env.example @@ -7,8 +7,6 @@ OPENAI_API_KEY=CHANGE_ME # OLLAMA_API_BASE_URL=http://host.docker.internal:11434 # Uncomment to activate ollama. This is the local url for the ollama api - - # This file is used to configure the Quivr stack. It is used by the `docker-compose.yml` file to configure the stack. ######## diff --git a/backend/celery_config.py b/backend/celery_config.py index aa2932c96..f767ac235 100644 --- a/backend/celery_config.py +++ b/backend/celery_config.py @@ -28,8 +28,8 @@ if CELERY_BROKER_URL.startswith("sqs"): elif CELERY_BROKER_URL.startswith("redis"): celery = Celery( __name__, - broker=CELERY_BROKER_URL, - backend=CELERY_BROKER_URL, + broker=f"{CELERY_BROKER_URL}?ssl_cert_reqs=none", + backend=f"{CELERY_BROKER_URL}?ssl_cert_reqs=none", task_concurrency=4, worker_prefetch_multiplier=2, task_serializer="json", diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 33c5f7e05..a4cf43b16 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -31,7 +31,7 @@ services: - 5678:5678 # debug port redis: - image: redis:latest@sha256:a7cee7c8178ff9b5297cb109e6240f5072cdaaafd775ce6b586c3c704b06458e + image: redis:latest container_name: redis restart: always ports: diff --git a/docker-compose.yml b/docker-compose.yml index fa8b895b3..6dd1d8eb2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,7 +35,6 @@ services: command: - "uvicorn" - "main:app" - - "--reload" - "--host" - "0.0.0.0" - "--port"