{"id":11773,"date":"2026-11-21T04:58:44","date_gmt":"2026-11-21T03:58:44","guid":{"rendered":"https:\/\/www.xitens.nl\/?p=11773"},"modified":"2026-11-21T05:07:50","modified_gmt":"2026-11-21T04:07:50","slug":"n8n-self-hosted-vps","status":"publish","type":"post","link":"https:\/\/www.xitens.nl\/en\/n8n-self-hosted-vps\/","title":{"rendered":"How to Self-Host n8n on a VPS: Step-by-Step Guide"},"content":{"rendered":"<p><strong>With n8n self-hosted on a VPS you run your own workflow automation, without limits per workflow and with your data fully under your own control.<\/strong> n8n is a popular alternative to Zapier and Make: you connect hundreds of apps and services through a visual editor. In this guide you install n8n with Docker on a Linux VPS, including your own domain and a secure HTTPS connection.<\/p>\n\n<h2>What is n8n?<\/h2>\n<p>n8n is a workflow automation tool. You build workflows by connecting blocks (nodes): a trigger, such as a new form submission or an incoming webhook, followed by actions, such as sending an email, updating a database or calling an AI model. n8n is fair-code: you may self-host it for your own use and for internal business processes.<\/p>\n\n<h2>Why self-host n8n on a VPS?<\/h2>\n<ul>\n<li><strong>No cost per execution:<\/strong> you pay for your server, not per workflow or per task.<\/li>\n<li><strong>Data under your control:<\/strong> your data stays on your own server in a data centre in Amsterdam, which helps with GDPR compliance.<\/li>\n<li><strong>Complete freedom:<\/strong> custom nodes, your own scripts and connections to internal systems that are not reachable from the internet.<\/li>\n<li><strong>Always online:<\/strong> webhooks and scheduled workflows run 24\/7, even when your own computer is switched off.<\/li>\n<\/ul>\n\n<h2>Which VPS do you need for n8n?<\/h2>\n<p>n8n is lightweight, but the number and complexity of your workflows determine what you need:<\/p>\n<ul>\n<li><strong>Getting started and light workflows:<\/strong> 1 to 2 cores and 2 GB of memory.<\/li>\n<li><strong>Many workflows or large datasets:<\/strong> 2 to 4 cores and 4 GB of memory or more.<\/li>\n<li><strong>Production with database and queue:<\/strong> choose extra memory and fast storage.<\/li>\n<\/ul>\n<p>A <a href=\"https:\/\/www.xitens.nl\/en\/nvme-vps\/\">NVMe VPS<\/a> is ideal for n8n: the fast NVMe storage keeps the database and workflow history responsive. If business-critical automations run on it, choose a <a href=\"https:\/\/www.xitens.nl\/en\/linux-vps\/\">Linux VPS<\/a> with high availability: if a physical server fails, your VPS automatically restarts on another server.<\/p>\n\n<h2>Step by step: installing n8n with Docker<\/h2>\n<h3>Step 1: order a VPS with Ubuntu or Debian<\/h3>\n<p>Choose a VPS with Ubuntu or Debian as the operating system. Once it is delivered you receive the IP address and login details. New to VPS hosting? First read <a href=\"https:\/\/www.xitens.nl\/en\/what-is-a-vps\/\">what a VPS is<\/a>.<\/p>\n<h3>Step 2: log in and update the server<\/h3>\n<p>Log in via SSH as root and install the latest updates:<\/p>\n<pre data-no-translation=\"\"><code>ssh root@JOUW-IP\napt update &amp;&amp; apt upgrade -y<\/code><\/pre>\n<h3>Step 3: install Docker<\/h3>\n<p>Install Docker with the official installation script:<\/p>\n<pre data-no-translation=\"\"><code>curl -fsSL https:\/\/get.docker.com | sh<\/code><\/pre>\n<h3>Step 4: connect a (sub)domain<\/h3>\n<p>Create an A record for your domain name, for example for n8n.example.com, pointing to the IP address of your VPS. If you do not have a domain yet, <a href=\"https:\/\/www.xitens.nl\/en\/domain-name-registration\/\">register a domain name<\/a> in a few clicks.<\/p>\n<h3>Step 5: create the configuration<\/h3>\n<p>Create a folder for n8n and place a docker-compose.yml file in it. Caddy automatically provides a free SSL certificate, so n8n is only reachable over HTTPS:<\/p>\n<pre data-no-translation=\"\" data-title=\"docker-compose.yml\"><code>services:\n  n8n:\n    image: docker.n8n.io\/n8nio\/n8n\n    restart: unless-stopped\n    environment:\n      - N8N_HOST=n8n.example.com\n      - N8N_PROTOCOL=https\n      - WEBHOOK_URL=https:\/\/n8n.example.com\/\n      - GENERIC_TIMEZONE=Europe\/Amsterdam\n    volumes:\n      - n8n_data:\/home\/node\/.n8n\n  caddy:\n    image: caddy:2\n    restart: unless-stopped\n    ports:\n      - \"80:80\"\n      - \"443:443\"\n    volumes:\n      - .\/Caddyfile:\/etc\/caddy\/Caddyfile\n      - caddy_data:\/data\nvolumes:\n  n8n_data:\n  caddy_data:<\/code><\/pre>\n<p>Create a Caddyfile in the same folder:<\/p>\n<pre data-no-translation=\"\" data-title=\"Caddyfile\"><code>n8n.example.com {\n    reverse_proxy n8n:5678\n}<\/code><\/pre>\n<h3>Step 6: start n8n<\/h3>\n<pre data-no-translation=\"\"><code>docker compose up -d<\/code><\/pre>\n<p>Then open your domain in the browser and create the owner account. Your n8n environment is now ready to use.<\/p>\n\n<h2>Keeping n8n secure and up to date<\/h2>\n<ul>\n<li><strong>Firewall:<\/strong> only allow SSH, HTTP and HTTPS, for example with UFW.<\/li>\n<li><strong>Updates:<\/strong> update n8n regularly with <code>docker compose pull<\/code> followed by <code>docker compose up -d<\/code>.<\/li>\n<li><strong>Backups:<\/strong> regularly back up the n8n_data volume, which contains your workflows and credentials.<\/li>\n<li><strong>Access:<\/strong> use a strong password and enable two-factor authentication.<\/li>\n<\/ul>\n<p>Read more tips for a secure server in our article <a href=\"https:\/\/www.xitens.nl\/en\/how-do-i-secure-my-linux-vps\/\">How do I secure my Linux VPS?<\/a><\/p>\n\n<h2>Hosting n8n at Xitens<\/h2>\n<p>Xitens has been a hosting provider in Amsterdam since 2014. Our VPS servers run in our own racks with our own network in a TIER III data centre in Amsterdam. You get full root access, install all the software you need yourself and can always reach your server via the noVNC console in the client area. All VPS plans offer 99.9% uptime, and our support engineers are available 24\/7 by ticket and email.<\/p>\n\n<h2>Frequently asked questions about self-hosted n8n<\/h2>\n<h3>Is self-hosted n8n free?<\/h3>\n<p>You may use the self-hosted version of n8n free of charge for your own workflows and internal business processes. You only pay for the server n8n runs on. Separate n8n terms apply to commercial resale and certain enterprise features.<\/p>\n<h3>What is the difference with n8n Cloud?<\/h3>\n<p>With n8n Cloud, n8n hosts the software for you and you pay per subscription, with limits on the number of executions. Self-hosted, you manage the server yourself, with full control over your data and no limits per execution.<\/p>\n<h3>How much memory does n8n need?<\/h3>\n<p>For light workflows, 2 GB of memory is usually enough. If you process large amounts of data or run many workflows at the same time, choose 4 GB or more.<\/p>\n<h3>Can I also run n8n on a Windows VPS?<\/h3>\n<p>You can, but a Linux VPS with Docker is the standard and most stable way to host n8n. This guide is based on that setup as well.<\/p>","protected":false},"excerpt":{"rendered":"Self-host n8n on a VPS: install n8n with Docker, your own domain and HTTPS. Step-by-step guide, system requirements and tips for a secure setup.","protected":false},"author":1,"featured_media":11774,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-11773","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"_links":{"self":[{"href":"https:\/\/www.xitens.nl\/en\/wp-json\/wp\/v2\/posts\/11773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xitens.nl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xitens.nl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xitens.nl\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xitens.nl\/en\/wp-json\/wp\/v2\/comments?post=11773"}],"version-history":[{"count":2,"href":"https:\/\/www.xitens.nl\/en\/wp-json\/wp\/v2\/posts\/11773\/revisions"}],"predecessor-version":[{"id":11777,"href":"https:\/\/www.xitens.nl\/en\/wp-json\/wp\/v2\/posts\/11773\/revisions\/11777"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.xitens.nl\/en\/wp-json\/wp\/v2\/media\/11774"}],"wp:attachment":[{"href":"https:\/\/www.xitens.nl\/en\/wp-json\/wp\/v2\/media?parent=11773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xitens.nl\/en\/wp-json\/wp\/v2\/categories?post=11773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xitens.nl\/en\/wp-json\/wp\/v2\/tags?post=11773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}