-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (54 loc) · 1.58 KB
/
docker-compose.yml
File metadata and controls
56 lines (54 loc) · 1.58 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
services:
causantic:
build:
context: .
dockerfile: Dockerfile
container_name: causantic
volumes:
# Persist memory data
- causantic-data:/data/causantic
# Mount Claude projects for ingestion (read-only)
- ~/.claude/projects:/claude-projects:ro
environment:
- CAUSANTIC_STORAGE_DB_PATH=/data/causantic/memory.db
- CAUSANTIC_STORAGE_VECTOR_PATH=/data/causantic/vectors
- CAUSANTIC_LLM_ENABLE_LABELLING=false
# Optional: enable cluster labelling with Anthropic API key
# - CAUSANTIC_LLM_ENABLE_LABELLING=true
# - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
ports:
# Dashboard
- '3333:3333'
restart: unless-stopped
healthcheck:
test:
[
'CMD',
'node',
'-e',
"import('./dist/storage/db.js').then(m => m.getDb().prepare('SELECT 1').get())",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Maintenance daemon (runs scheduled tasks)
causantic-maintenance:
build:
context: .
dockerfile: Dockerfile
container_name: causantic-maintenance
volumes:
- causantic-data:/data/causantic
- ~/.claude/projects:/claude-projects:ro
environment:
- CAUSANTIC_STORAGE_DB_PATH=/data/causantic/memory.db
- CAUSANTIC_STORAGE_VECTOR_PATH=/data/causantic/vectors
- CAUSANTIC_LLM_ENABLE_LABELLING=false
command: ['node', 'dist/cli/index.js', 'maintenance', 'daemon']
restart: unless-stopped
depends_on:
- causantic
volumes:
causantic-data:
driver: local