2023-12-02 02:26:06 +03:00
|
|
|
version: "3.8"
|
2023-05-21 02:20:55 +03:00
|
|
|
|
|
|
|
services:
|
|
|
|
frontend:
|
2023-12-05 02:01:14 +03:00
|
|
|
image: quivr-frontend-prebuilt
|
2023-12-02 16:55:51 +03:00
|
|
|
pull_policy: never
|
2023-05-21 02:20:55 +03:00
|
|
|
build:
|
|
|
|
context: frontend
|
2023-09-15 02:09:26 +03:00
|
|
|
dockerfile: Dockerfile
|
2023-12-02 02:26:06 +03:00
|
|
|
args:
|
|
|
|
- NEXT_PUBLIC_ENV=local
|
|
|
|
- NEXT_PUBLIC_BACKEND_URL=${NEXT_PUBLIC_BACKEND_URL}
|
|
|
|
- NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL}
|
|
|
|
- NEXT_PUBLIC_SUPABASE_ANON_KEY=${NEXT_PUBLIC_SUPABASE_ANON_KEY}
|
|
|
|
- NEXT_PUBLIC_CMS_URL=${NEXT_PUBLIC_CMS_URL}
|
|
|
|
- NEXT_PUBLIC_FRONTEND_URL=${NEXT_PUBLIC_FRONTEND_URL}
|
2024-05-10 11:25:29 +03:00
|
|
|
- NEXT_PUBLIC_AUTH_MODES=${NEXT_PUBLIC_AUTH_MODES}
|
2023-05-21 02:20:55 +03:00
|
|
|
container_name: web
|
2024-06-27 13:51:01 +03:00
|
|
|
depends_on:
|
2024-09-02 11:20:53 +03:00
|
|
|
- backend-api
|
2023-05-21 02:20:55 +03:00
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
2023-08-18 11:18:29 +03:00
|
|
|
|
2024-09-02 11:20:53 +03:00
|
|
|
backend-api:
|
2024-09-10 19:13:16 +03:00
|
|
|
image: stangirard/quivr-backend-prebuilt:latest
|
2023-12-05 02:01:14 +03:00
|
|
|
pull_policy: if_not_present
|
2023-05-21 02:20:55 +03:00
|
|
|
env_file:
|
2023-12-02 02:26:06 +03:00
|
|
|
- .env
|
2023-05-21 02:20:55 +03:00
|
|
|
build:
|
2023-08-19 14:32:16 +03:00
|
|
|
context: backend
|
2023-12-05 02:26:06 +03:00
|
|
|
dockerfile: Dockerfile
|
2024-09-02 11:20:53 +03:00
|
|
|
container_name: backend-api
|
2024-04-23 01:33:36 +03:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
2023-12-03 22:26:26 +03:00
|
|
|
healthcheck:
|
2024-04-23 01:33:36 +03:00
|
|
|
test: [ "CMD", "curl", "http://localhost:5050/healthz" ]
|
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 --loop uvloop"
|
2024-01-07 18:50:38 +03:00
|
|
|
restart: always
|
2023-09-14 12:56:59 +03:00
|
|
|
ports:
|
|
|
|
- 5050:5050
|
2023-10-16 17:11:34 +03:00
|
|
|
|
2024-09-02 11:20:53 +03:00
|
|
|
worker:
|
2024-08-09 01:36:31 +03:00
|
|
|
pull_policy: if_not_present
|
2024-09-10 19:13:16 +03:00
|
|
|
image: stangirard/quivr-backend-prebuilt:latest
|
2024-07-15 16:37:42 +03:00
|
|
|
env_file:
|
|
|
|
- .env
|
2024-09-02 11:20:53 +03:00
|
|
|
container_name: worker
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
command: >
|
|
|
|
/bin/bash -c "python -m celery -A quivr_worker.celery_worker worker -l info"
|
2024-07-15 16:37:42 +03:00
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
|
2024-09-02 11:20:53 +03:00
|
|
|
notifier:
|
|
|
|
pull_policy: never
|
2024-09-10 19:13:16 +03:00
|
|
|
image: stangirard/quivr-backend-prebuilt:latest
|
2024-04-23 01:33:36 +03:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
2024-09-02 11:20:53 +03:00
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
container_name: notifier
|
|
|
|
command: >
|
|
|
|
/bin/bash -c "python /app/worker/quivr_worker/celery_monitor.py"
|
2023-08-18 11:18:29 +03:00
|
|
|
restart: always
|
2023-09-14 12:56:59 +03:00
|
|
|
depends_on:
|
|
|
|
- redis
|
2024-09-02 11:20:53 +03:00
|
|
|
- worker
|
2023-10-16 17:11:34 +03:00
|
|
|
|
|
|
|
beat:
|
2024-09-10 19:13:16 +03:00
|
|
|
image: stangirard/quivr-backend-prebuilt:latest
|
2023-12-05 02:01:14 +03:00
|
|
|
pull_policy: if_not_present
|
2023-10-16 17:11:34 +03:00
|
|
|
env_file:
|
2023-12-02 02:26:06 +03:00
|
|
|
- .env
|
2023-10-16 17:11:34 +03:00
|
|
|
container_name: beat
|
2024-04-23 01:33:36 +03:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
2024-09-02 11:20:53 +03:00
|
|
|
command: >
|
|
|
|
/bin/bash -c "python -m celery -A quivr_worker.celery_worker beat -l info"
|
2023-10-16 17:11:34 +03:00
|
|
|
restart: always
|
|
|
|
depends_on:
|
2024-09-02 11:20:53 +03:00
|
|
|
|
2023-10-16 17:11:34 +03:00
|
|
|
- redis
|
|
|
|
|
2023-09-14 12:56:59 +03:00
|
|
|
flower:
|
2024-09-10 19:13:16 +03:00
|
|
|
image: stangirard/quivr-backend-prebuilt:latest
|
2023-12-05 02:01:14 +03:00
|
|
|
pull_policy: if_not_present
|
2023-08-18 11:18:29 +03:00
|
|
|
env_file:
|
2023-12-02 02:26:06 +03:00
|
|
|
- .env
|
2023-09-14 12:56:59 +03:00
|
|
|
container_name: flower
|
2024-04-23 01:33:36 +03:00
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
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"
|
2023-08-18 11:18:29 +03:00
|
|
|
restart: always
|
2023-09-14 12:56:59 +03:00
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- worker
|
2023-10-16 17:11:34 +03:00
|
|
|
- beat
|
2023-09-14 12:56:59 +03:00
|
|
|
ports:
|
|
|
|
- 5555:5555
|
2024-09-02 11:20:53 +03:00
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:latest@sha256:a7cee7c8178ff9b5297cb109e6240f5072cdaaafd775ce6b586c3c704b06458e
|
|
|
|
container_name: redis
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 6379:6379
|
|
|
|
|
|
|
|
networks:
|
|
|
|
quivr-network:
|
|
|
|
driver: bridge
|