forked from QuivrHQ/quivr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
94 lines (88 loc) · 2.6 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
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
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 --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 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 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 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"