-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
89 lines (85 loc) · 2.69 KB
/
docker-compose.yml
File metadata and controls
89 lines (85 loc) · 2.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# =============================================================================
# LATRACE Memory Stack - Minimal Self-Hosted Docker Compose
# =============================================================================
# Includes:
# - memory (port 8000) - FastAPI memory service
# - qdrant (port 6333) - Vector database
# - neo4j (port 7687) - Graph database
#
# Usage:
# Start: docker compose up --build
# Stop: docker compose down
# Reset: docker compose down -v # WARNING: deletes local data volumes
# =============================================================================
services:
memory:
build:
context: .
dockerfile: Dockerfile
image: latrace-memory:latest
ports:
- "8000:8000"
environment:
QDRANT_HOST: ${QDRANT_HOST:-qdrant}
QDRANT_PORT: ${QDRANT_PORT:-6333}
QDRANT_API_KEY: ${QDRANT_API_KEY:-}
NEO4J_URI: ${NEO4J_URI:-bolt://neo4j:7687}
NEO4J_USER: ${NEO4J_USER:-neo4j}
NEO4J_PASSWORD: ${NEO4J_PASSWORD:-neo4j_password}
LLM_PROVIDER: ${LLM_PROVIDER:-openrouter}
OPENROUTER_API_KEY: ${OPENROUTER_API_KEY:-}
OPENAI_API_KEY: ${OPENAI_API_KEY:-}
GOOGLE_API_KEY: ${GOOGLE_API_KEY:-}
ZHIPUAI_API_KEY: ${ZHIPUAI_API_KEY:-}
DASHSCOPE_API_KEY: ${DASHSCOPE_API_KEY:-}
MEMORY_API_AUTH_ENABLED: ${MEMORY_API_AUTH_ENABLED:-false}
MEMORY_API_TOKEN: ${MEMORY_API_TOKEN:-}
MEMORY_API_TENANT_ID: ${MEMORY_API_TENANT_ID:-}
MEMORY_API_JWKS_URL: ${MEMORY_API_JWKS_URL:-}
MEMORY_API_JWT_AUD: ${MEMORY_API_JWT_AUD:-}
MEMORY_API_JWT_ISS: ${MEMORY_API_JWT_ISS:-}
MEMORY_API_SIGNING_SECRET: ${MEMORY_API_SIGNING_SECRET:-}
MEMORY_STARTUP_ENSURE_COLLECTIONS: ${MEMORY_STARTUP_ENSURE_COLLECTIONS:-true}
PYTHONUNBUFFERED: "1"
depends_on:
- qdrant
- neo4j
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/metrics', timeout=5)",
]
interval: 30s
timeout: 10s
retries: 5
start_period: 45s
restart: unless-stopped
qdrant:
image: qdrant/qdrant:v1.12.1
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_data:/qdrant/storage
- qdrant_snapshots:/qdrant/snapshots
restart: unless-stopped
neo4j:
image: neo4j:5.26-community
ports:
- "7474:7474"
- "7687:7687"
environment:
NEO4J_AUTH: ${NEO4J_USER:-neo4j}/${NEO4J_PASSWORD:-neo4j_password}
NEO4J_PLUGINS: '["apoc"]'
volumes:
- neo4j_data:/data
- neo4j_logs:/logs
restart: unless-stopped
volumes:
qdrant_data:
qdrant_snapshots:
neo4j_data:
neo4j_logs: