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):
This commit is contained in:
Stan Girard 2024-02-20 19:52:14 -08:00 committed by GitHub
parent 3c2d83b22f
commit 19c11944bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 3 additions and 6 deletions

View File

@ -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.
########

View File

@ -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",

View File

@ -31,7 +31,7 @@ services:
- 5678:5678 # debug port
redis:
image: redis:latest@sha256:a7cee7c8178ff9b5297cb109e6240f5072cdaaafd775ce6b586c3c704b06458e
image: redis:latest
container_name: redis
restart: always
ports:

View File

@ -35,7 +35,6 @@ services:
command:
- "uvicorn"
- "main:app"
- "--reload"
- "--host"
- "0.0.0.0"
- "--port"