Skip to main content

Deployment

The RapidREST cli can generate two different deployment paths. Both wire up your project's datastores as environment variables using the same colon-to-double-underscore convention .env() uses in Configuration, e.g. datastores__mongo__url, not a separate deployment-specific config format.

  • Bun - run the server on Bun instead of Node.js. This is a runtime switch, not a packaging format — it composes with either option below.
  • Docker - a multi-stage Dockerfile and Compose setup, including debug and CPU-profiling variants.
  • Kubernetes (Helm) - a Helm chart with optional MongoDB/Redis subcharts, Gateway API routing, and auto-generated secrets.

Docker and Kubernetes support can be added to an existing project with the CLI. See CLI Reference → Add-ons using rapidrest generate docker and rapidrest generate k8s.