-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (32 loc) · 919 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (32 loc) · 919 Bytes
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
version: "3.8"
services:
ragdag:
build: .
ports:
- "8420:8420"
volumes:
- ragdag-data:/data
environment:
- RAGDAG_STORE=/data
# Uncomment and set for embedding/LLM support:
# - OPENAI_API_KEY=${OPENAI_API_KEY}
# - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8420/health')"]
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
restart: unless-stopped
# MCP server mode (stdio transport, for piping)
ragdag-mcp:
build: .
profiles: ["mcp"]
volumes:
- ragdag-data:/data
environment:
- RAGDAG_STORE=/data
stdin_open: true
command: ["python3", "-c", "import sys; sys.path.insert(0, '/app'); sys.path.insert(0, '/app/sdk'); from server.mcp import run; run()"]
volumes:
ragdag-data: