# Convenience wrapper around `docker run` for the web dashboard container. # # Usage: # docker compose up --build # # First run: visit http://localhost:8080 and follow the on-page login flow # — no docker exec or -it needed. Credentials persist in the named volume, # so subsequent restarts skip straight to the dashboard. # # Copy .env.example to .env if you'd rather inject CLAUDE_CODE_OAUTH_TOKEN or # ANTHROPIC_API_KEY instead of using the web login flow — .env is entirely # optional otherwise. services: app: build: . ports: - "${PORT:-8080}:8080" volumes: - claude-usage-data:/data environment: - CLAUDE_CODE_OAUTH_TOKEN=${CLAUDE_CODE_OAUTH_TOKEN:-} - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-} - USAGE_REFRESH_INTERVAL_MS=${USAGE_REFRESH_INTERVAL_MS:-300000} volumes: claude-usage-data: