All templates

Deploy n8n with Postgres on Rebasable

n8n workflow automation from the official image, storing workflows and credentials in Postgres.

Runtime: image Starter instance with Postgres automationimagepostgres

How it works

The service runs the official n8nio/n8n image on port 5678. Workflows, executions and credentials go to the managed Postgres through the DB_POSTGRESDB_* variables. N8N_ENCRYPTION_KEY is generated once and encrypts stored credentials; keep it if you ever move the data. The start command sets WEBHOOK_URL to the service URL so webhook nodes show the right public address.

Run it locally

docker run -p 5678:5678 n8nio/n8n

Use it as your own repository

Copy the n8n 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

  • Open the URL after the first deploy and create the owner account right away: until then anyone with the URL can claim it.
  • Webhooks and schedules need the service awake, so the template uses Starter (never sleeps).
  • Pin a version by changing the image tag, for example n8nio/n8n:1.110.1.