-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (47 loc) · 1.71 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (47 loc) · 1.71 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
# Claude Office Visualizer - Docker Compose Configuration
#
# Usage:
# docker compose up -d # Start in background
# docker compose logs -f # View logs
# docker compose down # Stop and remove containers
#
# For development with hot-reload, use 'make dev' instead.
services:
claude-office:
build:
context: .
dockerfile: Dockerfile
container_name: claude-office
# Loopback-only: this is a localhost tool (SEC-004)
ports:
- "127.0.0.1:8000:8000"
volumes:
# Mount Claude data directory (read-only for security)
# The hooks write JSONL transcripts here; backend reads them for token usage
- ${CLAUDE_DATA_DIR:-~/.claude}:/claude-data:ro
# Persist SQLite database
- claude-office-db:/app/data
environment:
# Path translation for Docker
# Host path prefix that appears in transcript_path from hooks
- CLAUDE_PATH_HOST=${CLAUDE_PATH_HOST:-}
# Container path where ~/.claude is mounted
- CLAUDE_PATH_CONTAINER=/claude-data
# Database location (use mounted volume for persistence)
- DATABASE_URL=sqlite+aiosqlite:////app/data/visualizer.db
# Claude API settings (optional - enables AI summaries)
- CLAUDE_CODE_OAUTH_TOKEN=${CLAUDE_CODE_OAUTH_TOKEN:-}
- SUMMARY_ENABLED=${SUMMARY_ENABLED:-true}
- SERVE_STATIC=1
# Plain tracebacks in containers (SEC-006)
- LOG_RICH_TRACEBACKS=0
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
claude-office-db:
name: claude-office-db