mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-11-10 13:35:41 +03:00
03c49693b7
# 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):
95 lines
1.8 KiB
YAML
95 lines
1.8 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
backend-core:
|
|
image: backend-base
|
|
pull_policy: never
|
|
env_file:
|
|
- .env
|
|
build:
|
|
context: backend
|
|
dockerfile: Dockerfile.dev
|
|
args:
|
|
- DEV_MODE=true
|
|
container_name: backend-core
|
|
volumes:
|
|
- ./backend/:/code/
|
|
command:
|
|
- "uvicorn"
|
|
- "main:app"
|
|
- "--reload"
|
|
- "--host"
|
|
- "0.0.0.0"
|
|
- "--port"
|
|
- "5050"
|
|
- "--workers"
|
|
- "6"
|
|
restart: always
|
|
|
|
ports:
|
|
- 5050:5050
|
|
- 5678:5678 # debug port
|
|
|
|
redis:
|
|
image: redis:latest@sha256:a7cee7c8178ff9b5297cb109e6240f5072cdaaafd775ce6b586c3c704b06458e
|
|
container_name: redis
|
|
restart: always
|
|
ports:
|
|
- 6379:6379
|
|
|
|
worker:
|
|
pull_policy: never
|
|
image: backend-base
|
|
env_file:
|
|
- .env
|
|
build:
|
|
context: backend
|
|
dockerfile: Dockerfile
|
|
container_name: worker
|
|
# volumes:
|
|
# - ./backend/:/code/
|
|
command: >
|
|
/bin/sh -c "
|
|
watchmedo auto-restart -d . -p '*.py' --recursive -- celery -A celery_worker worker -l info
|
|
"
|
|
restart: always
|
|
depends_on:
|
|
- redis
|
|
|
|
beat:
|
|
image: backend-base
|
|
pull_policy: never
|
|
env_file:
|
|
- .env
|
|
build:
|
|
context: backend
|
|
dockerfile: Dockerfile
|
|
|
|
container_name: beat
|
|
command: >
|
|
/bin/sh -c "
|
|
watchmedo auto-restart -d . -p '*.py' --recursive -- celery -A celery_worker beat -l info
|
|
"
|
|
restart: always
|
|
depends_on:
|
|
- redis
|
|
|
|
flower:
|
|
image: backend-base
|
|
pull_policy: never
|
|
env_file:
|
|
- .env
|
|
build:
|
|
context: backend
|
|
dockerfile: Dockerfile
|
|
|
|
container_name: flower
|
|
command: celery -A celery_worker flower -l info --port=5555
|
|
restart: always
|
|
depends_on:
|
|
- redis
|
|
- worker
|
|
- beat
|
|
ports:
|
|
- 5555:5555
|