Hosted in Germany • GDPR-ready

How to Self-Host n8n

A practical guide to running n8n on your own server: from testing locally to production-grade setup. See the real costs, architecture, and when managed hosting pays for itself.

Test it free — no credit card required
204.7K
GitHub Stars
🔗
1.5K+
Integrations
📦
9K+
Workflow Templates
What is n8n

n8n: Open-Source Workflow Automation Without Limits

n8n is a fair-code, self-hostable workflow automation platform. It comes with a visual editor, native support for custom code (JavaScript, Python), and connections to 1,500+ apps. Unlike Zapier, you own the code, data, and infrastructure.

Teams self-host n8n for three reasons:

Cost Savings. Self-hosting costs $5–10/month for basic infrastructure. n8n Cloud, by comparison, starts at €20/month (~$22 USD) with execution caps. A team running 50,000+ executions/month saves 70% or more by self-hosting.

Data Privacy. When you self-host, all workflow data, credentials, and execution history stay on your server. No vendor has access. This is critical for regulated industries (HIPAA, GDPR).

Unlimited Executions. n8n Community Edition has no per-execution throttling. You can run millions of workflows with no additional cost—something n8n Cloud charges extra for.

How It Works

Self-hosting n8n gets easier with each step—until it doesn't. Here's how teams typically progress, and where the complexity kicks in.

1
Start Local: npx n8n

Run n8n on your laptop in 30 seconds: npx n8n. Perfect for learning and testing workflows. Data is stored locally and disappears when you restart—not production-safe.

2
Basic Docker with SQLite

Deploy n8n as a Docker container with SQLite database. Data persists, but SQLite hits its limits at high concurrency. Good for small teams or non-critical workflows.

3
Production Setup: PostgreSQL, Redis, Workers

Add PostgreSQL (database), Redis (queue), and separate worker containers for parallel execution. Add a reverse proxy (Nginx/Caddy) and SSL certificate. This is where most DIY efforts stall.

1

Start Local: npx n8n

Run n8n on your laptop in 30 seconds: npx n8n. Perfect for learning and testing workflows. Data is stored locally and disappears when you restart—not production-safe.

2

Basic Docker with SQLite

Deploy n8n as a Docker container with SQLite database. Data persists, but SQLite hits its limits at high concurrency. Good for small teams or non-critical workflows.

3

Production Setup: PostgreSQL, Redis, Workers

Add PostgreSQL (database), Redis (queue), and separate worker containers for parallel execution. Add a reverse proxy (Nginx/Caddy) and SSL certificate. This is where most DIY efforts stall.

4

Or Skip the DevOps

Let Opsily handle the architecture, SSL, backups, and updates. Deploy n8n in 10 minutes. Focus on workflows, not infrastructure.

70%+

Self-Hosted n8n Saves 70% on Cloud Pricing

But factor in the hidden cost: your time. DIY infrastructure costs $5–10/mo. Add 2–3 hours/month for server management, database tuning, SSL renewal, security patches, and uptime monitoring. At $50/hour, that's $1,200–1,800/year in hidden labor. That's why managed self-hosted providers exist.

The Real Checklist

What Production n8n Actually Requires

DIY self-hosting isn't just running a Docker image. Here are the components a production deployment needs.

PostgreSQL database (persistent storage)
Redis instance (execution queue & caching)
Separate n8n worker containers (parallel execution)
Reverse proxy (Nginx or Caddy)
SSL/TLS certificate & renewal automation
Monitoring & alerting for uptime
Automated daily backups
Security patches & n8n version updates

Why Managed n8n Hosting Beats DIY Self-Hosting

DIY self-hosting is technically possible. But here's what you're trading your time for.

Cost That Stays Predictable

Managed n8n hosting costs $3–11/mo with competitors; Opsily is cost-competitive. No surprise infrastructure bills, no time taxes from patching or updates. One line item, all-in. Compare that to DIY's $5–10/mo plus 24–36 hours/year of your work.

Full Data Privacy & Control

Run n8n on managed infrastructure while keeping all workflow data, credentials, and execution history on servers you control. No vendor lock-in, no data harvest, GDPR-compliant by design. Opsily can deploy in your region (EU, US, etc.).

Unlimited Executions, Zero Throttling

n8n Community Edition has no execution limits. Unlike n8n Cloud (which caps executions by tier), self-hosted n8n runs unlimited workflows at zero marginal cost. Opsily passes that benefit to you—scale without hitting artificial limits.

The Real Math

DIY Self-Hosting vs. Managed: The One-Year Cost

DIY Self-Hosted n8n

  • Infrastructure (VPS, database, storage): $5–10/month = $60–120/year
  • Your ops time: 2–3 hours/month × 12 months × $50/hour = $1,200–1,800/year
  • Total: $1,260–1,920/year + your effort

Managed n8n (Opsily Alternative)

  • All-inclusive hosting, updates, backups, SSL: $X/month = $X × 12/year (check with sales for Opsily pricing)
  • Your ops time: 0 hours
  • Total: Predictable monthly charge, zero ops burden

The Comparison

n8n Cloud (official SaaS) costs €20/month (~$22 USD) for the Starter tier, which includes 2,500 executions/month. If your team needs more, you jump to higher tiers with per-execution pricing. Managed self-hosted providers (including Opsily) typically undercut Cloud pricing while offering unlimited executions—and you keep data on infrastructure you control.

DIY wins if you love server admin. Managed wins if you'd rather spend 10 minutes deploying and 40+ hours/year on workflow building instead of patching.

n8n's Credibility: Why Teams Trust It

Open-source projects live or die by community. n8n has earned sustained momentum.

204.7K GitHub Stars & Growing

n8n reached 100K stars in May 2025, then added 15K more in two months. 23,953 commits show active, ongoing development. Not a stalled side project.

Fair-Code License

Licensed under the Sustainable Use License. You can fork, self-host, modify, and customize without restrictions. No surprise enterprise licensing trap.

1,500+ Integrations & Growing

Connect to Slack, Salesforce, Google Sheets, HubSpot, AWS, Azure, Postgres, and more. 9,000+ ready-made workflow templates accelerate implementation.

No Vendor Lock-In

n8n is truly open-source. Export workflows, data, and credentials anytime. Move to any infrastructure without restrictions or conversion costs.

Ready to Stop Managing n8n Infrastructure?

Opsily's managed n8n hosting takes 10 minutes to set up. We handle Docker, PostgreSQL, Redis, SSL certificates, backups, updates, and monitoring. You focus on building workflows that matter.

Questions About Self-Hosting n8n

Yes. n8n Community Edition is open-source and fully self-hostable. You can run it on your own server, VPS, Kubernetes cluster, or private cloud. You need Docker, a PostgreSQL database for production, and a basic understanding of reverse proxies and SSL. The n8n documentation provides step-by-step setup guides for different platforms.