2023-12-02 19:08:21 +03:00
|
|
|
version: "3.8"
|
2023-06-04 00:12:42 +03:00
|
|
|
|
|
|
|
services:
|
2024-09-02 11:20:53 +03:00
|
|
|
backend-api:
|
|
|
|
image: backend-api:latest
|
2024-06-05 23:51:18 +03:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
2023-12-02 19:08:21 +03:00
|
|
|
pull_policy: never
|
2023-06-04 00:12:42 +03:00
|
|
|
env_file:
|
2023-12-02 19:08:21 +03:00
|
|
|
- .env
|
2023-06-04 00:12:42 +03:00
|
|
|
build:
|
2023-08-19 14:32:16 +03:00
|
|
|
context: backend
|
2023-12-05 02:26:06 +03:00
|
|
|
dockerfile: Dockerfile.dev
|
2024-04-17 16:00:31 +03:00
|
|
|
cache_from:
|
2024-09-02 11:20:53 +03:00
|
|
|
- backend-api:latest
|
2023-10-09 16:23:13 +03:00
|
|
|
args:
|
|
|
|
- DEV_MODE=true
|
2024-09-02 11:20:53 +03:00
|
|
|
container_name: backend-api
|
2023-06-04 00:12:42 +03:00
|
|
|
volumes:
|
2024-09-03 16:23:23 +03:00
|
|
|
- ./backend/:/app/
|
2024-09-02 11:20:53 +03:00
|
|
|
command: >
|
|
|
|
/bin/bash -c "python -m uvicorn quivr_api.main:app --host 0.0.0.0 --log-level info --reload --port 5050"
|
2024-01-03 23:53:37 +03:00
|
|
|
restart: always
|
2023-09-14 18:23:17 +03:00
|
|
|
ports:
|
|
|
|
- 5050:5050
|
2023-10-09 16:23:13 +03:00
|
|
|
- 5678:5678 # debug port
|
|
|
|
|
2024-07-15 16:37:42 +03:00
|
|
|
notifier:
|
|
|
|
pull_policy: never
|
2024-09-02 11:20:53 +03:00
|
|
|
image: backend-api:latest
|
2024-07-15 16:37:42 +03:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
container_name: notifier
|
|
|
|
volumes:
|
2024-09-03 16:23:23 +03:00
|
|
|
- ./backend/:/app/
|
2024-09-02 11:20:53 +03:00
|
|
|
command: >
|
2024-09-03 16:23:23 +03:00
|
|
|
/bin/bash -c "python /app/worker/quivr_worker/celery_monitor.py"
|
2024-07-15 16:37:42 +03:00
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- worker
|
|
|
|
|
2023-09-14 18:23:17 +03:00
|
|
|
worker:
|
2023-12-02 19:08:21 +03:00
|
|
|
pull_policy: never
|
2024-09-02 11:20:53 +03:00
|
|
|
image: backend-api:latest
|
2024-06-05 23:51:18 +03:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
2023-08-18 11:18:29 +03:00
|
|
|
env_file:
|
2023-12-02 19:08:21 +03:00
|
|
|
- .env
|
2023-09-14 18:23:17 +03:00
|
|
|
container_name: worker
|
2024-06-26 10:58:55 +03:00
|
|
|
volumes:
|
2024-09-03 16:23:23 +03:00
|
|
|
- ./backend/:/app/
|
2024-09-02 11:20:53 +03:00
|
|
|
command: >
|
2024-09-03 16:23:23 +03:00
|
|
|
/bin/bash -c "python -m celery -A quivr_worker.celery_worker worker -l info -E"
|
2023-12-02 19:08:21 +03:00
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
|
2024-09-02 11:20:53 +03:00
|
|
|
redis:
|
|
|
|
image: redis:latest
|
|
|
|
container_name: redis
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 6379:6379
|
|
|
|
|
2023-12-02 19:08:21 +03:00
|
|
|
beat:
|
2024-09-02 11:20:53 +03:00
|
|
|
image: backend-api:latest
|
2023-12-02 19:08:21 +03:00
|
|
|
pull_policy: never
|
2024-06-05 23:51:18 +03:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
2023-12-02 19:08:21 +03:00
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
container_name: beat
|
2024-09-02 11:20:53 +03:00
|
|
|
command: >
|
|
|
|
/bin/bash -c "python -m celery -A quivr_worker.celery_worker beat -l info"
|
2024-06-26 10:58:55 +03:00
|
|
|
volumes:
|
2024-09-03 16:23:23 +03:00
|
|
|
- ./backend/:/app/
|
2023-12-02 19:08:21 +03:00
|
|
|
restart: always
|
2023-09-14 18:23:17 +03:00
|
|
|
depends_on:
|
|
|
|
- redis
|
2023-10-09 16:23:13 +03:00
|
|
|
|
2023-09-14 18:23:17 +03:00
|
|
|
flower:
|
2024-09-02 11:20:53 +03:00
|
|
|
image: backend-api:latest
|
2023-12-02 19:08:21 +03:00
|
|
|
pull_policy: never
|
2024-06-05 23:51:18 +03:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
2023-08-18 11:18:29 +03:00
|
|
|
env_file:
|
2023-12-02 19:08:21 +03:00
|
|
|
- .env
|
2023-09-14 18:23:17 +03:00
|
|
|
container_name: flower
|
2024-09-02 11:20:53 +03:00
|
|
|
command: >
|
|
|
|
/bin/bash -c "python -m celery -A quivr_worker.celery_worker flower -l info --port=5555"
|
2024-06-26 10:58:55 +03:00
|
|
|
volumes:
|
2024-09-03 16:23:23 +03:00
|
|
|
- ./backend/:/app/
|
2023-12-02 19:08:21 +03:00
|
|
|
restart: always
|
2023-09-14 18:23:17 +03:00
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- worker
|
2023-12-02 19:08:21 +03:00
|
|
|
- beat
|
2023-09-14 18:23:17 +03:00
|
|
|
ports:
|
|
|
|
- 5555:5555
|