Skip to content
ExploreHivesDatasetsRequestsMCPDocsPricing

Deployment

Provider-agnostic containers (infrastructure/docker/*.Dockerfile). Works on a VPS with Coolify, Docker Compose, or any container platform. No Kubernetes required.

Everything is served from one domain (www.datarebel.io), like the Vercel deployment. The reverse proxy routes by path, most specific first:

Path Service Port
/v1/mcp, /v1/mcp/contribute mcp 8001
/v1/*, /health, /ready, /openapi.json, /llms.txt, /llms-full.txt, /agents.json, /datasets.json, /.well-known/datarebel.json, /.well-known/oauth-protected-resource api 8000
everything else web 3000

Set WEB_URL, API_URL, MCP_URL and the web app's NEXT_PUBLIC_SITE_URL, NEXT_PUBLIC_API_URL, NEXT_PUBLIC_MCP_URL to https://www.datarebel.io. The web container still reaches the API directly through API_INTERNAL_URL (e.g. http://api:8000).

  • Terminate HTTPS at the reverse proxy (Caddy/Traefik/Nginx; example in infrastructure/deployment/Caddyfile).
  • MCP: pass Host, disable buffering for text/event-stream; the host in MCP_URL is allowed automatically (add others, such as the bare domain, to MCP_ALLOWED_HOSTS).
  • Run migrations once per release (datarebel-admin migrate) before rolling api/mcp/worker.
  • Use managed PostgreSQL 16 with pgvector where possible; daily backups + PITR; test restores monthly (infrastructure/deployment/backup.md).
  • Set ENVIRONMENT=production; startup fails on default secrets.
  • Keep ENABLE_REAL_PAYMENTS/ENABLE_REAL_PAYOUTS false until provider and compliance approval. Enabling Stripe (Checkout credits + Connect payouts) follows the go-live checklist in docs/payments/stripe.md.
  • Observability: JSON logs with correlation_id; /health and /ready; tracing via pip install ".[otel]" + OTEL_EXPORTER_OTLP_ENDPOINT (FastAPI + SQLAlchemy spans; MCP SDK spans natively).
  • Behind a TLS-intercepting corporate proxy, build with docker build --secret id=ca,src=<ca-bundle.pem> … (BuildKit secret; never stored in an image layer).
  • Graceful shutdown: uvicorn handles SIGTERM; the worker loop drains on SIGTERM; Celery uses late acks.
Deployment · DataRebel