Deploy MergeShield on your own infrastructure for full data control, compliance requirements, or air-gapped environments.
bash
docker pull ghcr.io/mergeshield/api:latest
docker run -p 4000:4000 \
-e DATABASE_URL=postgres://... \
-e REDIS_URL=redis://... \
-e ANTHROPIC_API_KEY=sk-ant-... \
-e GITHUB_APP_ID=... \
-e GITHUB_PRIVATE_KEY="..." \
-e GITHUB_WEBHOOK_SECRET=... \
ghcr.io/mergeshield/api:latest
``DATABASE_URL — PostgreSQL connection string
→ REDIS_URL — Redis connection string
→ ANTHROPIC_API_KEY — Claude API key for AI analysis
→ GITHUB_APP_ID — GitHub App ID
→ GITHUB_PRIVATE_KEY — GitHub App private key (PEM format)
→ GITHUB_WEBHOOK_SECRET — Webhook signature verification
→ GITHUB_CLIENT_ID / GITHUB_CLIENT_SECRET — GitHub OAuth
→ BETTER_AUTH_SECRET — Session encryption key
→ BETTER_AUTH_URL — API base URL
→ FRONTEND_URL — Dashboard URL (for CORS, email links)RESEND_API_KEY — Email delivery (graceful degradation without)
→ STRIPE_SECRET_KEY — Billing integration (skip for self-hosted)
→ PORT — API port (default: 4000)
GET /api/health
``
Returns 200 with DB and Redis connectivity status.Our enterprise team can help with architecture planning, deployment, and ongoing support.
Contact Enterprise Sales