# Docker Compose for running the Claude-powered voice agent # # Usage: # docker compose up --build # # Required environment variables (in .env.local): # - LIVEKIT_URL: Your LiveKit server URL # - LIVEKIT_API_KEY: Your LiveKit API key # - LIVEKIT_API_SECRET: Your LiveKit API secret # # Claude authentication (ONE of these): # - CLAUDE_CODE_OAUTH_TOKEN: Use your Claude subscription (Pro/Max/Team) # Generate with: claude setup-token # - ANTHROPIC_API_KEY: Use pay-as-you-go API billing services: voice-agent: build: context: . dockerfile: Dockerfile # Load environment variables from .env.local env_file: - .env.local # Mount a workspace directory for Claude to work in # Claude can read/write/execute in this directory volumes: # Mount a local directory as /workspace # Change ./workspace to your actual project path if needed # Or override in docker-compose.override.yml for local development - ./workspace:/workspace # Optional: expose metrics port if needed # ports: # - "8080:8080" # Restart policy restart: unless-stopped # Resource limits (adjust as needed) # Claude operations can be memory-intensive deploy: resources: limits: memory: 4G reservations: memory: 1G