Self-Hosting & Deployment
AI Crawler / Raw View: Fetch this page as raw Markdown at
/self-host.md. Cloud Harness MCP is designed for straightforward self-hosting on any modern Linux VPS or cloud instance.
Deployment Stack
- Compose Stack:
compose.production.yamldefines the loopback ingress, stateless API, and runner daemon. - Systemd Service:
deploy/systemd/cloud-harness-mcp.serviceensures auto-restart and proper shutdown lifecycle. - NGINX Reverse Proxy: Terminates SSL, manages WebSocket upgrade for PTY sessions, and strips untrusted upstream headers.
Production Runbook
- Bootstrap VPS: Run
deploy/scripts/bootstrap-vps.shto install Docker, systemd unit, and permissions. - Deploy Release: Run
deploy/scripts/deploy-release.sh <git-sha>to build and start production containers. - Canary Verification: Run
scripts/deploy-canary.mjsto execute an automated end-to-end workspace test against the newly deployed instance.