-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (58 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
65 lines (58 loc) · 1.27 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
63
64
65
version: '3.8'
services:
hanerma-api:
build:
context: .
dockerfile: deployment/docker/Dockerfile
ports:
- "8000:8000"
environment:
- NEO4J_URI=bolt://neo4j-db:7687
- REDIS_URL=redis://redis-cache:6379
- OLLAMA_ENDPOINT=http://ollama-service:11434/api/generate
depends_on:
- neo4j-db
- redis-cache
- ollama-service
networks:
- hanerma-local-net
# === The Local LLM Server ===
ollama-service:
image: ollama/ollama:latest
ports:
- "11434:11434"
volumes:
- ollama_models:/root/.ollama
# Uncomment the deploy block below if you have an NVIDIA GPU
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
networks:
- hanerma-local-net
neo4j-db:
image: neo4j:5.10
ports:
- "7474:7474"
- "7687:7687"
environment:
- NEO4J_AUTH=none # No-auth dev mode
volumes:
- neo4j_data:/data
networks:
- hanerma-local-net
redis-cache:
image: redis:7-alpine
ports:
- "6379:6379"
networks:
- hanerma-local-net
volumes:
neo4j_data:
ollama_models:
networks:
hanerma-local-net:
driver: bridge