# Hosting for n8n (self-hosted automation)

> What self-hosting n8n needs from a server, how to size it and what to protect with backups and security.

Source: https://comparehostingonline.com/hosting-for/n8n/

## Short answer

To self-host n8n you need a server where you can run it, usually a small VPS or cloud server with Docker, plus persistent storage and backups. The right size depends on how many workflows run and how heavy they are, so start small and measure.

Last verified Nov 28, 2026 · [How we test](https://comparehostingonline.com/methodology/)

## What self-hosting involves

Your own automation server

1.  **VPS or cloud server** Root access, small to start
2.  **n8n in Docker** Runs your workflows
3.  **HTTPS proxy** Protects the editor and webhooks
4.  **Backups** Data volume and encryption key

n8n is a workflow automation tool. Self-hosting gives you control over data and cost, but you take on updates, security and backups.

## What the server needs

-   **Root access** To install Docker or Node.js.
-   **Persistent storage** For workflow data and credentials.
-   **Public address and HTTPS** If webhooks or triggers call your instance.
-   **Enough memory** Start small and watch usage.

## Security and reliability checklist

1.  1
    
    **Put n8n behind HTTPS and a reverse proxy**
    
2.  2
    
    **Protect the editor with strong authentication**
    
3.  3
    
    **Keep n8n and the operating system updated**
    
4.  4
    
    **Back up the data volume and encryption key, and test a restore**
    
5.  5
    
    **Restrict the firewall to the ports you need**
    

An unmanaged [VPS](https://comparehostingonline.com/hosting-types/vps/) is the usual low-cost choice. Choose a managed VPS if you want the host to handle updates, and check each provider’s terms for running automation workloads.

## What does n8n need?

-   A server where you can run Node.js or Docker, usually a small VPS.
-   A database for persistence, with backups.
-   HTTPS for webhooks.
-   Enough memory for your workflows.

## How do you run it safely?

Put it behind HTTPS with authentication, keep it updated, restrict access, store credentials securely and back up the data. Follow the n8n hosting documentation for the recommended setup, and the checklist in [how to secure a new VPS](https://comparehostingonline.com/guides/how-to-secure-a-vps/).

## Cloud or self-hosted?

The vendor’s cloud removes server work for a subscription. Self-hosting gives control and a flat cost but makes you responsible for uptime. Compare on [best VPS hosting](https://comparehostingonline.com/best/vps-hosting/).

## Sources and further reading

-   [n8n hosting documentation](https://docs.n8n.io/hosting/)
-   [Docker documentation](https://docs.docker.com/)
-   [OWASP Cheat Sheet Series](https://cheatsheetseries.owasp.org/)

## Common questions

Can I host n8n on shared hosting?

Usually not. It needs a server where you can run Node.js or Docker.

How much server does n8n need?

A small VPS handles light workflows; heavier use needs more memory.

How do I keep n8n safe?

Use HTTPS, strong authentication and updates, and restrict access.

How do I back it up?

Back up the database and encryption key, and test a restore.

What about webhooks?

They need a public HTTPS address that stays reachable.

## Related

[Docker hosting](https://comparehostingonline.com/hosting-for/docker/) [VPS hosting](https://comparehostingonline.com/hosting-types/vps/)

## More hosting by stack

[Python and Django hosting](https://comparehostingonline.com/hosting-for/python-django/) [Ruby on Rails hosting](https://comparehostingonline.com/hosting-for/ruby-on-rails/) [Go (Golang) hosting](https://comparehostingonline.com/hosting-for/go/) [WordPress hosting for developers](https://comparehostingonline.com/hosting-for/wordpress/) [Hosting a headless CMS](https://comparehostingonline.com/hosting-for/headless-cms/) [Best hosting for Astro sites](https://comparehostingonline.com/hosting-for/astro/)

MH

**[Muhammad Hamza](https://comparehostingonline.com/team/muhammad-hamza/)** Founder & Editor

Writes and signs off every comparison, and runs the compliance reviews. Has worked on SOC 2 and HIPAA compliance programs for companies.

Our [editorial policy](https://comparehostingonline.com/editorial-policy/) and [testing method](https://comparehostingonline.com/methodology/) are public.
