What is n8n?
n8n is the workflow automation tool that took Zapier’s job for technical teams: 400+ integrations, a visual editor, and real code nodes when clicking runs out. Its production architecture is queue mode - the editor/webhook instance enqueues executions into Redis, and dedicated workers burn through them - and that is exactly what this template deploys.
On Lyngbak, db and queue become managed Postgres and Valkey, with connection env auto-wired onto both the main instance and the workers. One required variable (N8N_ENCRYPTION_KEY) and you have the architecture n8n’s own docs recommend for production.
Workers are stateless - binary data lives in the database - so this is the one template in the catalogue where scaling replicas is the right move: bump worker replicas as workflow volume grows. n8n Cloud meters by executions; here executions are not metered, and you pay for the compute the stack reserves.
What you get
- Queue mode: the production architecture, not a single-container toy
- Horizontally scalable workers (stateless BullMQ consumers)
- 400+ integrations plus JS/Python code nodes and AI agent nodes
- Managed Postgres + Valkey auto-provisioned and auto-wired
- Executions are not metered - no per-run pricing
- Webhooks served on the public editor instance
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
n8n | editor + API + webhooks + scheduler (:5000) | yes |
n8n-worker | workflow execution (scale replicas) | no |
db / queue | Postgres / Valkey - managed services on Lyngbak | no |
Before you deploy
N8N_ENCRYPTION_KEYencrypts stored credentials (openssl rand -hex 24); losing it orphans saved credentials
Sizing and billing
1 GiB editor + 1 GiB per worker (two by default) + managed services. Workers are the scaling dial: add replicas as workflow volume grows. An 8 GiB resource holds the default stack with room for more workers.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 5.98 GiB of volumes cost $0.15 per GiB a month ($0.90/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| n8n Cloud | Starter | $24/mo | 2,500 executions/mo, 5 concurrent - no queue mode |
| n8n Cloud | Pro | $60/mo | 10,000 executions/mo, 20 concurrent |
Self-hosted n8n has no execution metering - the comparison crosses over at a few thousand workflow runs a month. Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
How much does self-hosted n8n cost vs n8n Cloud?
n8n Cloud prices its plans by executions: Starter covers 2,500 a month and Pro 10,000. Self-hosted, executions are not metered - you pay for the compute the stack reserves, on a flat resource or by the second on Usage Billing - and queue mode is part of the template.
What is queue mode and why does it matter?
In default mode one process does everything - a heavy workflow blocks the editor and webhooks. Queue mode separates concerns: the main instance enqueues executions into Valkey and stateless workers execute them. It is n8n’s recommended production setup and what this template ships.
How do I scale n8n workers?
Increase the n8n-worker replica count - workers are stateless (binary data lives in Postgres), so this is the one catalogue template where replicas-based scaling is correct. Each worker wants ~1 GiB.
Are community nodes and AI features available self-hosted?
Yes - community nodes install from the editor, and the AI/LangChain agent nodes work with your own API keys. Self-hosted n8n has no feature meter on executions or workflows.
What happens if I lose N8N_ENCRYPTION_KEY?
Stored credentials become undecryptable - workflows survive but every connection must be re-authenticated. Treat the key like a database backup: store it in a password manager the day you deploy.