# ABOUTME: Docker Compose configuration for Obsidian MCP server
# ABOUTME: Mounts the Obsidian vault and exposes the MCP HTTP endpoint
services:
obsidian-mcp:
build: .
container_name: obsidian-mcp
ports:
- "9111:3000"
environment:
- MCP_TRANSPORT=http
- MCP_HTTP_PORT=3000
- OBSIDIAN_VAULT_PATH=/vault
volumes:
- "${OBSIDIAN_VAULT_HOST_PATH}:/vault:rw"
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s