-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (53 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
59 lines (53 loc) · 1.17 KB
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
services:
frontend:
build:
context: ./frontend
ports:
- "5173:5173"
environment:
- VITE_API_URL=https://codebaserag.hashirayaz.site/api
# - VITE_API_URL=http://143.110.183.231:3000
depends_on:
- backend
backend:
build:
context: ./backend
ports:
- "3000:3000"
environment:
- CHROMA_DB_URL=http://chromadb:8000 # Backend connects to ChromaDB
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=redisredis619
depends_on:
- chromadb
- redis
chromadb:
image: chromadb/chroma:latest
ports:
- "8000:8000"
environment:
- CHROMA_SERVER_CORS_ALLOW_ORIGINS=["http://143.110.183.231:3000","http://backend:3000"]
caddy:
image: caddy:2-alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
depends_on:
- frontend
- backend
redis:
image: redis:latest
ports:
- "6379:6379"
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis_data:/data
volumes:
caddy_data:
caddy_config:
redis_data: