services: proxy: image: mitmproxy/mitmproxy entrypoint: ["mitmweb"] command: > --web-host 0.0.0.0 --listen-port 9090 -s /addons/capture.py --set confdir=/mitmproxy-data ports: - "8081:8080" - "9090:9090" volumes: - ./test/mitmproxy:/addons:ro - ./test/mitmproxy-data:/mitmproxy-data - ./test/captures:/captures claude-code: build: context: . dockerfile: test/Dockerfile.claude-code depends_on: - proxy environment: - HTTP_PROXY=http://proxy:9090 - HTTPS_PROXY=http://proxy:9090 - NODE_TLS_REJECT_UNAUTHORIZED=0 - CLAUDE_CODE_OAUTH_TOKEN=${CLAUDE_CODE_OAUTH_TOKEN} - CLAUDE_ACCOUNT_UUID=${CLAUDE_ACCOUNT_UUID} - CLAUDE_ORG_UUID=${CLAUDE_ORG_UUID} volumes: - ./test/mitmproxy-data:/mitmproxy-ca:ro - ./test/captures:/captures stdin_open: true tty: true profiles: - code claude-py: build: context: . dockerfile: test/Dockerfile.claude-py depends_on: - proxy environment: - HTTP_PROXY=http://proxy:9090 - HTTPS_PROXY=http://proxy:9090 - CLAUDE_CODE_OAUTH_TOKEN=${CLAUDE_CODE_OAUTH_TOKEN} - CLAUDE_ACCOUNT_UUID=${CLAUDE_ACCOUNT_UUID} - CLAUDE_ORG_UUID=${CLAUDE_ORG_UUID} volumes: - ./test/mitmproxy-data:/mitmproxy-ca:ro - ./test/captures:/captures stdin_open: true tty: true profiles: - py