All templates

Deploy Strapi with Postgres on Rebasable

Strapi 5 headless CMS with its admin panel and a managed Postgres. All secrets are generated on first deploy.

Runtime: node Standard instance with Postgres nodecmspostgres

How it works

The build compiles the TypeScript project and the admin panel (npm run build), which needs memory, so the template uses the Standard instance. DATABASE_CLIENT=postgres and DATABASE_URL connect it to the managed database. APP_KEYS, the JWT secrets, the token salts and ENCRYPTION_KEY are generated once and never stored in git. /_health is Strapi’s own health endpoint.

Run it locally

npm install
npm run develop   # http://localhost:1337/admin (SQLite locally)

Use it as your own repository

Copy the strapi folder of the templates repository into a new repo (the files at the root, rebasable.yaml included) and push it. Then add a Deploy button to its README, or create it from Blueprints, New blueprint in the dashboard. From then on, every push deploys, and pull requests get preview environments.

Good to know

  • Content types created in production are not saved to git. Create them locally with npm run develop, commit, and push.
  • Uploaded media is stored on the instance by default; mount a persistent disk on the app’s public/uploads folder, or use an S3 upload provider plugin.