Skip to content
n8n · self-hosting · Updated July 2026

Self-hosted n8n

Self-hosting is what makes n8n so cheap and flexible for agencies. Here is why you would do it, how to set it up with Docker, what it really costs, and the tradeoff against n8n Cloud.

The short answer

Self-hosting means running the free, open-source Community edition on your own server instead of paying for n8n Cloud. You pay only for the server (a small VPS is inexpensive), executions are effectively unlimited with no per-task fee, and client data stays on your own infrastructure. The standard way to set it up is Docker. The tradeoff is that you, or someone, has to maintain the server.

Have n8n self-hosted and maintained for youFree scope back in a day · no obligation
Shipped for real agenciesNZ · CA · US · UKWhite-label, code you ownDelivered in about 7 to 10 days

Why agencies self-host n8n

No per-execution fee. Self-hosted, you run as many workflows and executions as your server handles for a flat hosting cost. This is the big one at volume.

You own the data. Client data stays on your infrastructure, never a third-party cloud, which matters for agencies handling sensitive accounts.

White-label. It runs under your brand and domain. Clients see your system, not an n8n cloud login.

Full control. Your own version, your own environment variables, community nodes, and integrations, with nothing gated behind a plan tier.

How to self-host n8n with Docker

The setup, at a high level. Each step is a small task; the maintenance after is the part to plan for.

1. Get a small server (VPS)

A basic cloud VPS (a couple of GB of RAM) is enough to start, for a low monthly cost. Providers like Hetzner, DigitalOcean, or any cloud work.

2. Install Docker

n8n runs cleanly in Docker, which keeps it isolated and easy to update. Docker Compose is the standard way to define the setup.

3. Run n8n with Docker Compose

A short compose file sets n8n, a Postgres database for persistence, and the environment variables. Bring it up and n8n is running.

4. Put it behind a domain with HTTPS

Point a subdomain at the server and add a reverse proxy (Caddy or Nginx) with SSL, so it is secure and reachable at your own URL.

5. Back it up and keep it updated

Schedule database backups and update the container periodically. This maintenance is the part most teams underestimate.

For the official reference, see the n8n self-hosting docs. For how the cost compares, see n8n pricing.

How it works

01

Describe the automation

One message with what you want to automate. No spec, no discovery-call gauntlet.

02

Get a real scope back

Ayush replies within a day with what to build, on which tool, and roughly what it takes.

03

Built and maintained for you

White-label, on tech you own, and kept running. You are never locked into us to keep it working.

Code you ownWhite-labelNo obligationReply within a day
Live demoWant proof I actually ship? Try Purrposal, a live product I built end to end. Paste a site and watch it generate a real proposal, no signup.Try it →

Common questions

Is self-hosted n8n free?

The self-hosted Community edition of n8n is free software; you only pay for the server it runs on, which is a low monthly cost for a small VPS. Executions are effectively unlimited with no per-task fee, which is why self-hosting is the cheapest way to run n8n at volume.

How do I self-host n8n with Docker?

Get a small VPS, install Docker, and run n8n with a Docker Compose file that defines the n8n container, a Postgres database for persistence, and your environment variables. Then put it behind your own domain with a reverse proxy and HTTPS. Docker keeps it isolated and simple to update.

How much does it cost to self-host n8n?

Just the server. A small VPS that comfortably runs n8n costs a low single- to double-digit amount per month, and executions are unlimited on top of that. Compared with per-task tools like Zapier, self-hosted n8n is dramatically cheaper once you automate at any real volume.

Self-hosted n8n vs n8n Cloud, which is better?

Self-hosted is cheapest and gives you full control and data ownership, at the cost of setting up and maintaining a server. n8n Cloud is priced by executions but removes the maintenance. For an agency at volume that wants to own its data and white-label, self-hosted usually wins, provided someone keeps it maintained.

Is self-hosting n8n hard?

The initial Docker setup is straightforward if you are comfortable with a server; the ongoing part, backups, updates, security, is what teams underestimate. Many agencies have it set up and maintained for them so they get the flat-cost, data-owned benefits without running infrastructure themselves.

n8n overviewn8n pricingn8n workflowsn8n vs Zapier
Free scope · no obligation

Want the benefits of self-hosting without running a server?

AOC sets up self-hosted n8n on your own infrastructure, secured and backed up, then builds and maintains the automations on top, so you get flat cost and data ownership without the ops work. Tell me the bottleneck and I send back a real scope. No obligation, reply within a day.

Scope it free →Or ask the assistant, bottom right