forked from vxcontrol/pentagi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-graphiti.yml
More file actions
73 lines (70 loc) · 1.71 KB
/
docker-compose-graphiti.yml
File metadata and controls
73 lines (70 loc) · 1.71 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
66
67
68
69
70
71
72
73
volumes:
neo4j_data:
driver: local
networks:
pentagi-network:
driver: bridge
external: true
name: pentagi-network
services:
neo4j:
image: neo4j:5.26.2
restart: unless-stopped
container_name: neo4j
hostname: neo4j
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:7474 || exit 1"]
interval: 1s
timeout: 10s
retries: 10
start_period: 3s
ports:
- "127.0.0.1:7474:7474" # HTTP
- "127.0.0.1:7687:7687" # Bolt
logging:
options:
max-size: 50m
max-file: "7"
volumes:
- neo4j_data:/data
environment:
- NEO4J_AUTH=${NEO4J_USER:-neo4j}/${NEO4J_PASSWORD:-devpassword}
networks:
- pentagi-network
shm_size: 4g
graphiti:
image: vxcontrol/graphiti:latest
restart: unless-stopped
container_name: graphiti
hostname: graphiti
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://localhost:8000/healthcheck')",
]
interval: 10s
timeout: 5s
retries: 3
depends_on:
neo4j:
condition: service_healthy
ports:
- "127.0.0.1:8000:8000"
logging:
options:
max-size: 50m
max-file: "7"
environment:
- NEO4J_URI=${NEO4J_URI:-bolt://neo4j:7687}
- NEO4J_USER=${NEO4J_USER:-neo4j}
- NEO4J_DATABASE=${NEO4J_DATABASE:-neo4j}
- NEO4J_PASSWORD=${NEO4J_PASSWORD:-devpassword}
- MODEL_NAME=${GRAPHITI_MODEL_NAME:-gpt-5-mini}
- OPENAI_BASE_URL=${OPEN_AI_SERVER_URL:-https://api.openai.com/v1}
- OPENAI_API_KEY=${OPEN_AI_KEY:-}
- PORT=8000
networks:
- pentagi-network