mirror of
https://github.com/QuivrHQ/quivr.git
synced 2025-01-05 23:03:53 +03:00
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:
parent
3c2d83b22f
commit
19c11944bc
@ -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
|
# 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.
|
# This file is used to configure the Quivr stack. It is used by the `docker-compose.yml` file to configure the stack.
|
||||||
|
|
||||||
########
|
########
|
||||||
|
@ -28,8 +28,8 @@ if CELERY_BROKER_URL.startswith("sqs"):
|
|||||||
elif CELERY_BROKER_URL.startswith("redis"):
|
elif CELERY_BROKER_URL.startswith("redis"):
|
||||||
celery = Celery(
|
celery = Celery(
|
||||||
__name__,
|
__name__,
|
||||||
broker=CELERY_BROKER_URL,
|
broker=f"{CELERY_BROKER_URL}?ssl_cert_reqs=none",
|
||||||
backend=CELERY_BROKER_URL,
|
backend=f"{CELERY_BROKER_URL}?ssl_cert_reqs=none",
|
||||||
task_concurrency=4,
|
task_concurrency=4,
|
||||||
worker_prefetch_multiplier=2,
|
worker_prefetch_multiplier=2,
|
||||||
task_serializer="json",
|
task_serializer="json",
|
||||||
|
@ -31,7 +31,7 @@ services:
|
|||||||
- 5678:5678 # debug port
|
- 5678:5678 # debug port
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:latest@sha256:a7cee7c8178ff9b5297cb109e6240f5072cdaaafd775ce6b586c3c704b06458e
|
image: redis:latest
|
||||||
container_name: redis
|
container_name: redis
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
|
@ -35,7 +35,6 @@ services:
|
|||||||
command:
|
command:
|
||||||
- "uvicorn"
|
- "uvicorn"
|
||||||
- "main:app"
|
- "main:app"
|
||||||
- "--reload"
|
|
||||||
- "--host"
|
- "--host"
|
||||||
- "0.0.0.0"
|
- "0.0.0.0"
|
||||||
- "--port"
|
- "--port"
|
||||||
|
Loading…
Reference in New Issue
Block a user