-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
91 lines (85 loc) · 2.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
91 lines (85 loc) · 2.09 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# docker-compose.yml — Memory Infrastructure (Hierarchical Hybrid)
# Redis (Working Memory) + Neo4j (Structural Memory)
# ChromaDB is not needed here as it operates in local file mode via the Python library
version: "3.9"
services:
redis:
image: redis:7-alpine
container_name: narv-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 5
neo4j:
image: neo4j:5-community
container_name: narv-neo4j
ports:
- "7474:7474" # HTTP
- "7687:7687" # Bolt
volumes:
- neo4j_data:/data
environment:
NEO4J_AUTH: neo4j/narv_memory_2026
NEO4J_PLUGINS: '[]'
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "cypher-shell -u neo4j -p narv_memory_2026 'RETURN 1' || exit 1"]
interval: 15s
timeout: 10s
retries: 5
narv:
build: .
container_name: narv-core
depends_on:
redis:
condition: service_healthy
neo4j:
condition: service_healthy
volumes:
- .:/app
- ./data:/app/data
- logs:/app/logs
env_file:
- .env
environment:
MEMORY_REDIS_URL: "redis://redis:6379/0"
MEMORY_NEO4J_URI: "bolt://neo4j:7687"
ACTOR_SANDBOX_ROOT: "/app/data/sandbox"
PYTHONPATH: "/app"
restart: unless-stopped
stop_grace_period: 5s
dashboard:
build: .
container_name: narv-dashboard
command: ["python", "tools/web_dashboard.py"]
depends_on:
redis:
condition: service_healthy
neo4j:
condition: service_healthy
ports:
- "8501:8501"
volumes:
- .:/app
- ./data:/app/data
- logs:/app/logs
env_file:
- .env
environment:
MEMORY_REDIS_URL: "redis://redis:6379/0"
MEMORY_NEO4J_URI: "bolt://neo4j:7687"
ACTOR_SANDBOX_ROOT: "/app/data/sandbox"
PYTHONPATH: "/app"
restart: unless-stopped
stop_grace_period: 5s
volumes:
redis_data:
neo4j_data:
logs: