forked from AndyMik90/Aperant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (75 loc) · 2.67 KB
/
docker-compose.yml
File metadata and controls
79 lines (75 loc) · 2.67 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
# Docker Compose for Auto Claude
# ===============================
#
# Services:
# - falkordb: Graph database for Graphiti memory integration
# - graphiti-mcp: MCP server for agent access to knowledge graph
#
# Usage:
# docker-compose up -d # Start all services
# docker-compose up -d falkordb # Start FalkorDB only
# docker-compose ps # Check status
# docker-compose logs -f # View logs
# docker-compose down # Stop services
#
# API Key Configuration:
# The graphiti-mcp service requires OPENAI_API_KEY. It will be read from:
#
# 1. CLI users: Set in auto-claude/.env (auto-loaded)
# 2. Frontend users: Set in .env in this directory, or:
# - Copy from your project: cp /path/to/your-project/auto-claude/.env .env
# - Or export before running: export OPENAI_API_KEY=sk-... && docker-compose up -d
name: auto-claude
services:
falkordb:
image: falkordb/falkordb:latest
container_name: auto-claude-falkordb
ports:
- "${GRAPHITI_FALKORDB_PORT:-6380}:6379"
volumes:
- falkordb_data:/data
environment:
- FALKORDB_ARGS=--appendonly yes
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
graphiti-mcp:
image: falkordb/graphiti-knowledge-graph-mcp:latest
container_name: auto-claude-graphiti-mcp
platform: linux/amd64 # Required: image only available for amd64
ports:
- "${GRAPHITI_MCP_PORT:-8000}:8000"
env_file:
# Load API keys from auto-claude/.env (CLI users) or .env (Frontend users)
# Note: Only OPENAI_API_KEY is needed from these files
- path: auto-claude/.env
required: false
- path: .env
required: false
environment:
# Required: Database type
DATABASE_TYPE: falkordb
# FalkorDB connection - MUST override env_file values for docker networking
# Note: The image uses FALKORDB_HOST/PORT (not GRAPHITI_FALKORDB_HOST/PORT)
FALKORDB_HOST: falkordb
FALKORDB_PORT: "6379"
# Optional: Custom model settings (OPENAI_API_KEY comes from env_file)
MODEL_NAME: ${GRAPHITI_MODEL_NAME:-gpt-4o-mini}
EMBEDDING_MODEL: ${GRAPHITI_EMBEDDING_MODEL:-text-embedding-3-small}
depends_on:
falkordb:
condition: service_healthy
healthcheck:
# SSE transport doesn't have /health endpoint, check if port is listening
test: ["CMD-SHELL", "curl -sf http://localhost:8000/sse --max-time 1 --head 2>/dev/null || exit 0"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
restart: unless-stopped
volumes:
falkordb_data:
driver: local