mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-12 11:26:07 +03:00
309666f3fd
This pull request updates the Docker build commands and dependencies.
84 lines
1.5 KiB
YAML
84 lines
1.5 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
backend-core:
|
|
image: backend-base:latest
|
|
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"
|
|
- "main:app"
|
|
- "--reload"
|
|
- "--host"
|
|
- "0.0.0.0"
|
|
- "--port"
|
|
- "5050"
|
|
- "--workers"
|
|
- "6"
|
|
- "--log-level"
|
|
- "info"
|
|
restart: always
|
|
|
|
ports:
|
|
- 5050:5050
|
|
- 5678:5678 # debug port
|
|
|
|
redis:
|
|
image: redis:latest
|
|
container_name: redis
|
|
restart: always
|
|
ports:
|
|
- 6379:6379
|
|
|
|
worker:
|
|
pull_policy: never
|
|
image: backend-base:latest
|
|
env_file:
|
|
- .env
|
|
container_name: worker
|
|
# volumes:
|
|
# - ./backend/:/code/
|
|
command: celery -A celery_worker worker -l info
|
|
restart: always
|
|
depends_on:
|
|
- redis
|
|
|
|
beat:
|
|
image: backend-base:latest
|
|
pull_policy: never
|
|
env_file:
|
|
- .env
|
|
|
|
container_name: beat
|
|
command: celery -A celery_worker beat -l info
|
|
restart: always
|
|
depends_on:
|
|
- redis
|
|
|
|
flower:
|
|
image: backend-base:latest
|
|
pull_policy: never
|
|
env_file:
|
|
- .env
|
|
|
|
container_name: flower
|
|
command: celery -A celery_worker flower -l info --port=5555
|
|
restart: always
|
|
depends_on:
|
|
- redis
|
|
- worker
|
|
- beat
|
|
ports:
|
|
- 5555:5555
|