-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
74 lines (69 loc) · 1.69 KB
/
docker-compose.yaml
File metadata and controls
74 lines (69 loc) · 1.69 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
# LocalMemory docker-compose.yaml
# Local-first memory system for AI Agents
services:
# Qdrant Vector Database
qdrant:
image: qdrant/qdrant:v1.7.4
container_name: localmemory-qdrant
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_data:/qdrant/storage
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6333/health"]
interval: 30s
timeout: 3s
retries: 3
restart: unless-stopped
# Python AI Service (Embedding + Extractor)
ai-service:
build:
context: .
dockerfile: Dockerfile
target: ai-service
container_name: localmemory-ai
ports:
- "8081:8081"
environment:
- EMBEDDING_MODEL=all-MiniLM-L6-v2
volumes:
- ./data/models:/root/.cache/huggingface
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8081/health"]
interval: 30s
timeout: 3s
retries: 3
restart: unless-stopped
# LocalMemory HTTP Server
localmemory:
build:
context: .
dockerfile: Dockerfile
target: final
container_name: localmemory-server
ports:
- "8080:8080"
volumes:
- ./data:/data
environment:
- CONFIG__DATABASE__PATH=/data/localmemory.db
- CONFIG__VECTOR_DB__URL=http://qdrant:6333
- CONFIG__BRIDGE__TCP_URL=http://ai-service:8081
depends_on:
qdrant:
condition: service_healthy
ai-service:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 3s
retries: 3
restart: unless-stopped
volumes:
qdrant_data:
driver: local
networks:
default:
name: localmemory-network