Documentation
Blueprints (rebasable.yaml)
Describe services, databases, key value stores and env groups as code in rebasable.yaml, compatible with render.yaml.
A blueprint is a YAML file in your repository that describes your whole stack. Rebasable creates and updates resources to match it. The format is compatible with Render’s render.yaml: you can use your existing file unchanged.
We look for rebasable.yaml, rebasable.yml or render.yaml at the repository root.
Example
services:
- type: web
name: api
runtime: node
plan: starter
buildCommand: npm ci && npm run build
startCommand: npm start
preDeployCommand: npm run migrate
healthCheckPath: /healthz
autoDeploy: true
previews:
generation: automatic
domains:
- api.example.com
envVars:
- key: DATABASE_URL
fromDatabase:
name: main-db
property: connectionString
- key: REDIS_URL
fromService:
type: keyvalue
name: cache
property: connectionString
- key: SESSION_SECRET
generateValue: true
- key: STRIPE_SECRET_KEY
sync: false # asked for in the dashboard, never stored in git
- fromGroup: shared-settings
- type: worker
name: jobs
runtime: node
plan: starter
startCommand: node dist/worker.js
envVars:
- fromGroup: shared-settings
- type: cron
name: nightly
runtime: node
schedule: "0 3 * * *"
startCommand: node dist/nightly.js
- type: keyvalue
name: cache
plan: free
maxmemoryPolicy: allkeys-lru
- type: web
name: site
runtime: static
buildCommand: npm ci && npm run build
staticPublishPath: dist
routes:
- type: rewrite
source: /*
destination: /index.html
databases:
- name: main-db
plan: basic-256mb
databaseName: app
user: app
envVarGroups:
- name: shared-settings
envVars:
- key: LOG_LEVEL
value: info
Apply a blueprint
Dashboard: Blueprints → New blueprint, pick the repository and branch, review the plan (what will be created, updated or left alone) and click Apply. With auto-sync on, every push that changes the file applies it again.
CLI:
rebasable blueprint validate # local + server validation, shows the plan
rebasable blueprint apply --dry-run # plan only
rebasable blueprint apply --from-repo # track the file in this repo and auto-sync on push
Rules
- Resources are matched by name. Renaming in the file creates a new resource; rename in the dashboard first to keep it.
- Resources removed from the file are not deleted automatically; the plan lists them so you can delete them yourself.
- Values with
sync: falseare prompted once and never written to the file. - Plans use our instance type names (
free,starter,standard,pro,pro_plus,pro_max). Render names are accepted and mapped, with a warning when the match is approximate.
Reference
| Field | Applies to | Notes |
|---|---|---|
type |
services | web, worker, cron, pserv (private), keyvalue / redis |
runtime |
services | node, python, go, ruby, php, java, rust, elixir, deno, bun, static, docker, image |
repo, branch, rootDir |
services | default: the blueprint’s repo and branch |
buildCommand, startCommand, preDeployCommand |
services | |
dockerfilePath, dockerContext |
docker services | |
image.url |
image services | private registries: image.creds |
plan, numInstances, scaling |
services | scaling: { minInstances, maxInstances, targetCPUPercent, targetMemoryPercent } |
healthCheckPath, port |
web, pserv | |
schedule |
cron | cron expression; cronTimezone optional |
disk |
services | { name, mountPath, sizeGB } |
domains |
web, static | list of hostnames |
envVars |
services, groups | value, generateValue, sync: false, fromDatabase, fromService, fromGroup |
buildFilter |
services | { paths: [], ignoredPaths: [] } |
previews.generation |
services | off, manual, automatic |
databases[] |
name, plan, databaseName, user, postgresMajorVersion, ipAllowList |
|
envVarGroups[] |
name, envVars |