Loading page
Loading page

Automation · Zapier alternative
n8n workflow automation backed by a PostgreSQL database instead of the default SQLite file.
This template runs n8n with a PostgreSQL database. n8n is a fair-code platform for workflow automation and AI agents. You link apps and steps on a visual canvas, and add code where you need it. Out of the box, n8n stores its data in a SQLite file. Here, PostgreSQL holds the workflows, credentials and the history of every run.
The n8n project lists more than 1,500 integrations and over 9,000 community workflow templates.
It suits small teams and businesses that use n8n every day and want a database built for heavier use. It is a good middle step between a single test instance and a full queue mode setup.
Hosted automation services charge per task or per run. A self-hosted n8n has no such meter, so a workflow that runs every minute costs the same as one that runs once a day. Your credentials and data stay in your own service.
The trade-off is upkeep. You look after n8n updates, PostgreSQL backups, and the encryption key. Execution history can grow fast, so set up pruning of old runs. The template uses the latest image tag, so read the n8n release notes before you redeploy.
Containers: postgres:17-alpine, n8nio/n8n:latest
Step 1
Choose the Starter plan. It costs $20 a month and runs up to 3 apps.
Step 2
Open App templates in the dashboard, choose n8n with Postgres, and click Deploy. We set up the containers, secrets and domain.
Step 3
Wait a few minutes for the first deploy, then open your new URL and finish the n8n with Postgres setup screen.