mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-08-16 18:00:23 +03:00
# Description - Added package manager - Added precommit checks - Rewrote dependency injection of Services and Repositories - Integrate async SQL alchemy engine - Migrate Chat repository to SQLModel - Migrated ChatHistory repository to SQLModel - User SQLModel - Unit test methodology with db rollback - Unit tests ChatRepository - Test ChatService get_history - Brain entity SQL Model - Promp SQLModel - Rewrite chat/{chat_id}/question route - updated docker files and docker compose in dev and production Added `quivr_core` subpackages: - Refactored KnowledgebrainQa - Added Rag service to interface with non-rag dependencies --------- Co-authored-by: aminediro <aminediro@github.com>
95 lines
1.9 KiB
YAML
95 lines
1.9 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
backend-core:
|
|
image: backend-base:latest
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
pull_policy: never
|
|
env_file:
|
|
- .env
|
|
build:
|
|
context: backend
|
|
dockerfile: Dockerfile.dev
|
|
cache_from:
|
|
- backend-base:latest
|
|
args:
|
|
- DEV_MODE=true
|
|
container_name: backend-core
|
|
volumes:
|
|
- ./backend/:/code/
|
|
command:
|
|
- "uvicorn"
|
|
- "backend.main:app"
|
|
- "--reload"
|
|
- "--host"
|
|
- "0.0.0.0"
|
|
- "--port"
|
|
- "5050"
|
|
- "--log-level"
|
|
- "info"
|
|
restart: always
|
|
|
|
ports:
|
|
- 5050:5050
|
|
- 5678:5678 # debug port
|
|
|
|
redis:
|
|
image: redis:latest
|
|
container_name: redis
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
restart: always
|
|
ports:
|
|
- 6379:6379
|
|
|
|
worker:
|
|
pull_policy: never
|
|
image: backend-base:latest
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
env_file:
|
|
- .env
|
|
container_name: worker
|
|
volumes:
|
|
- ./backend/:/code/
|
|
command: "watchfiles 'celery -A backend.celery_worker worker -l info' "
|
|
restart: always
|
|
depends_on:
|
|
- redis
|
|
|
|
beat:
|
|
image: backend-base:latest
|
|
pull_policy: never
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
env_file:
|
|
- .env
|
|
|
|
container_name: beat
|
|
command: celery -A backend.celery_worker beat -l info
|
|
volumes:
|
|
- ./backend/:/code/
|
|
restart: always
|
|
depends_on:
|
|
- redis
|
|
|
|
flower:
|
|
image: backend-base:latest
|
|
pull_policy: never
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
env_file:
|
|
- .env
|
|
container_name: flower
|
|
command: celery -A backend.celery_worker flower -l info --port=5555
|
|
volumes:
|
|
- ./backend/:/code/
|
|
restart: always
|
|
depends_on:
|
|
- redis
|
|
- worker
|
|
- beat
|
|
ports:
|
|
- 5555:5555
|