-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
52 lines (49 loc) · 1.13 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
version: '3.8'
services:
lightrag:
build:
context: .
dockerfile: Dockerfile.lightrag
ports:
- "9721:9721"
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- MINIRAG_HOST=0.0.0.0
- MINIRAG_PORT=9721
- MINIRAG_EMBEDDING_BINDING=openai
- MINIRAG_EMBEDDING_MODEL=text-embedding-3-small
volumes:
- ./data:/app/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9721/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
api:
build:
context: .
dockerfile: Dockerfile.api
ports:
- "8000:8000"
environment:
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- GEMINI_MODEL=gemini-2.0-flash-001
- MINIRAG_HOST=lightrag
- MINIRAG_PORT=9721
volumes:
- ./data:/app/data
depends_on:
lightrag:
condition: service_healthy
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8000
depends_on:
- api