version: '3.8'
services:
pathfinder:
build:
context: .
dockerfile: Dockerfile
image: pathfinder-mcp:latest
container_name: pathfinder-mcp
ports:
- "8000:8000"
volumes:
- pathfinder-sessions:/sessions
environment:
# Transport configuration
- PATHFINDER_TRANSPORT=sse
- PATHFINDER_HOST=0.0.0.0
- PATHFINDER_PORT=8000
# Session storage
- PATHFINDER_SESSIONS_DIR=/sessions
# Context limits (optional - defaults shown)
# - PATHFINDER_MAX_TOKENS=128000
healthcheck:
test: ["CMD", "python", "-c", "import http.client; conn = http.client.HTTPConnection('localhost', 8000); conn.request('GET', '/health'); r = conn.getresponse(); exit(0 if r.status == 200 else 1)"]
interval: 30s
timeout: 10s
start_period: 5s
retries: 3
restart: unless-stopped
volumes:
pathfinder-sessions:
driver: local