# Anti-cheat firewall overlay, merged on top of Harbor's base compose. Gives the main container # NET_ADMIN and runs restrict-network.sh as the entrypoint, so only DNS + the LLM API endpoints are # reachable (pypi/github/HF blocked). network_mode stays "public" (see task.toml) — the firewall, not # Docker, enforces the allowlist. mini-swe-agent is pre-installed and harbor's patched installer skips # the (now-blocked) network install when it is already present. services: main: cap_add: - NET_ADMIN entrypoint: ["/bin/bash", "/app/restrict-network.sh"] environment: - ALLOWED_HOSTS=${ALLOWED_HOSTS:-} - FIREWORKS_BASE_URL=${FIREWORKS_BASE_URL:-} - OPENROUTER_BASE_URL=${OPENROUTER_BASE_URL:-} - OPENAI_BASE_URL=${OPENAI_BASE_URL:-} - ANTHROPIC_BASE_URL=${ANTHROPIC_BASE_URL:-} - LLM_BASE_URL=${LLM_BASE_URL:-} - LITELLM_BASE_URL=${LITELLM_BASE_URL:-}