-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
52 lines (48 loc) · 1.32 KB
/
compose.yaml
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
services:
frontend:
build:
context: ./frontend
ports:
- "3000:3000"
environment:
- VITE_API_URL=http://api.maat.is
- VITE_FORUM_URL=http://forum.maat.is
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend.rule=Host(`maat.is`)"
- "traefik.http.routers.frontend.entrypoints=websecure"
- "traefik.http.routers.frontend.tls=true"
backend:
build:
context: ./backend
ports:
- "4000:4000"
environment:
- QDRANT_URL=http://qdrant:6333
- AI_MODERATOR_URL=http://ai-moderator:5000
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend.rule=Host(`api.maat.is`)"
- "traefik.http.routers.backend.entrypoints=websecure"
- "traefik.http.routers.backend.tls=true"
ai-moderator:
build:
context: ./ai-moderator
ports:
- "5000:5000"
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- QDRANT_URL=http://qdrant:6333
labels:
- "traefik.enable=true"
- "traefik.http.routers.ai-mod.rule=Host(`ai-mod.maat.is`)"
- "traefik.http.routers.ai-mod.entrypoints=websecure"
- "traefik.http.routers.ai-mod.tls=true"
qdrant:
image: qdrant/qdrant:latest
ports:
- "6333:6333"
volumes:
- qdrant_data:/qdrant/storage
volumes:
qdrant_data: