-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
62 lines (60 loc) · 1.53 KB
/
docker-compose.prod.yml
File metadata and controls
62 lines (60 loc) · 1.53 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
60
61
62
# Production overlay — use with: docker compose -f docker-compose.yml -f docker-compose.prod.yml up
services:
graphmind-api:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- GROQ_API_KEY=${GROQ_API_KEY}
- GEMINI_API_KEY=${GEMINI_API_KEY}
- NEO4J_URI=bolt://neo4j:7687
- NEO4J_USERNAME=neo4j
- NEO4J_PASSWORD=${NEO4J_PASSWORD}
- QDRANT_HOST=qdrant
- QDRANT_PORT=6333
- OLLAMA_BASE_URL=http://ollama:11434
- LANGFUSE_HOST=http://langfuse:3000
- LANGFUSE_PUBLIC_KEY=${LANGFUSE_PUBLIC_KEY}
- LANGFUSE_SECRET_KEY=${LANGFUSE_SECRET_KEY}
- API_KEY=${API_KEY}
- GRAPHMIND_ENV=production
depends_on:
qdrant:
condition: service_healthy
neo4j:
condition: service_healthy
ollama:
condition: service_healthy
deploy:
replicas: 2
resources:
limits:
memory: 1G
cpus: "1.0"
healthcheck:
test: ["CMD", "python", "-c", "import httpx; httpx.get('http://localhost:8000/api/v1/health').raise_for_status()"]
interval: 15s
timeout: 5s
retries: 3
start_period: 15s
restart: unless-stopped
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
deploy:
resources:
limits:
memory: 256M
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 3
restart: unless-stopped
volumes:
redis_data: