quivr/docker-compose.dev.yml
Zineb El Bachiri 2b74ebc1f0
fix(Analytics): no tags tracking for upload & crawl (#1024)
* 🚚 create useCrawlApi to use in useCrawler hook

* 🚑 fix tracking in Crawl

* 🧑‍💻 add hot reloading within docker containers

* 🚑 fix tracking for upload

* 🚚 create useUploadApi for fileUpload request

* 📈 add june tag for Language change

* 🩹 revert dependencies
2023-08-23 10:03:10 +02:00

95 lines
2.6 KiB
YAML

version: '3'
services:
traefik:
image: traefik:v2.10
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:5050"
ports:
- "5050:5050"
- "8080:8080" # For the Traefik dashboard (optional)
volumes:
- /var/run/docker.sock:/var/run/docker.sock
frontend:
env_file:
- ./frontend/.env
build:
context: frontend
dockerfile: Dockerfile.dev
container_name: web
restart: always
ports:
- 3000:3000
backend-core:
env_file:
- ./backend/.env
build:
context: backend
dockerfile: Dockerfile
container_name: backend-core
command: uvicorn main:app --reload --host 0.0.0.0 --port 5050
restart: always
volumes:
- ./backend/:/code/
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend-core.rule=PathPrefix(`/`)"
- "traefik.http.routers.backend-core.entrypoints=web"
- "traefik.http.services.backend-core.loadbalancer.server.port=5050"
backend-chat:
env_file:
- ./backend/.env
build:
context: backend
dockerfile: Dockerfile
container_name: backend-chat
command: uvicorn --reload chat_service:app --host 0.0.0.0 --port 5050
restart: always
volumes:
- ./backend/:/code/
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend-chat.rule=PathPrefix(`/chat`)"
- "traefik.http.routers.backend-chat.entrypoints=web"
- "traefik.http.services.backend-chat.loadbalancer.server.port=5050"
backend-crawl:
env_file:
- ./backend/.env
build:
context: backend
dockerfile: Dockerfile
container_name: backend-crawl
command: uvicorn --reload crawl_service:app --host 0.0.0.0 --port 5050
restart: always
volumes:
- ./backend/:/code/
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend-crawl.rule=PathPrefix(`/crawl`)"
- "traefik.http.routers.backend-crawl.entrypoints=web"
- "traefik.http.services.backend-crawl.loadbalancer.server.port=5050"
backend-upload:
env_file:
- ./backend/.env
build:
context: backend
dockerfile: Dockerfile
container_name: backend-upload
command: uvicorn --reload upload_service:app --host 0.0.0.0 --port 5050
restart: always
volumes:
- ./backend/:/code/
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend-upload.rule=PathPrefix(`/upload`)"
- "traefik.http.routers.backend-upload.entrypoints=web"
- "traefik.http.services.backend-upload.loadbalancer.server.port=5050"