Self-hosted app·Automation, scraping and trading
Hosting n8n on a Swiss VPS.
n8n VPS hosting in the Swiss Alps: sizing, a Docker Compose stack with Postgres and task runners, webhook hardening, backups and costs from $12.99/mo.
- n8n
- Docker
- PostgreSQL
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port15 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $116.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 4 vCPU, 4 GB RAM
- 160 GB NVMe local storage
- 15 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/07
Short answer.
Yes. Our Cloud VPS Standard plan (4 vCPU, 4 GB RAM, 160 GB NVMe, 15 TB of monthly transfer, 12.99 USD a month, in ALP1 in the Swiss Alps) runs n8n with PostgreSQL and an external task runner on one machine, which is the layout n8n describes for production. You can deploy it with Debian 13 here.
The plan is the easy decision. An n8n instance holds live credentials for every system it automates, keeps copies of the data that passes through it, and has to answer public webhook URLs to do its job. In January 2026 that combination produced CVE-2026-21858, an unauthenticated remote code execution flaw rated CVSS 10. Size the server once and move on; what keeps it safe is how little of it faces the internet and how quickly you patch.
02/07
What n8n is and who self-hosts it.
n8n is a workflow automation tool developed by n8n GmbH in Berlin. You build workflows in a browser editor from a trigger (a schedule, a webhook, a form, an incoming email) followed by nodes for more than 400 integrations, with Code nodes in JavaScript or Python for whatever the built-in nodes do not cover. The source is published under the Sustainable Use License, which n8n calls fair-code. Without a license key a self-hosted instance runs as the free Community edition; Business and Enterprise keys enable features such as external S3 storage and multi-main setups.
Most people who self-host it on a VPS are freelancers wiring up invoicing, CRM and mailing for clients, or small companies moving internal automations off a per-task SaaS bill. The license matters to the first group. n8n's FAQ allows you to build and maintain automations for clients on your own instance and to charge for that work, provided the clients cannot create or edit workflows. Giving clients their own logins so they can build workflows is outside the Community license, and n8n asks you to contact them for that case.
The version picture in early November 2026: production is the 2.x line (2.45.7 is the current stable according to n8n's Docker documentation). n8n 3.0.0 shipped as a beta on 27 October 2026, with a stable 3.x announced for early December. n8n states that moving to 3.x is one-way and that 2.x keeps receiving security and critical fixes for twelve months after 3.x goes stable. Stay on 2.x in production, open Settings › Migration Report (available from 2.39), and try 3.0 on a separate instance; a Starter VPS for one month costs 6.99 USD and is a reasonable place to break things.
Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.
03/07
Requirements and sizing.
n8n spends most of its time waiting on other people's APIs, so a quiet instance needs little. Load comes from Code nodes, from large binary payloads such as PDFs and spreadsheets passing through a workflow, and from executions running at the same time. n8n's own Docker Compose guide asks for at least 4 GB of RAM and 2 vCPUs, and that figure already includes the Docker-in-Docker sandbox for n8n Assistant, the heaviest optional component. In practice the 2–4 vCPU range covers almost every single-team instance.
| Plan | vCPU / RAM / NVMe / transfer | Price / month | Where it fits |
|---|---|---|---|
| Starter | 2 / 2 GB / 80 GB / 10 TB | $6.99 | One user, SQLite, a few scheduled workflows, or a test instance for 3.0. Below n8n's documented 4 GB for the full stack. |
| Standard | 4 / 4 GB / 160 GB / 15 TB | $12.99 | The recommendation: n8n, external task runner, PostgreSQL and a reverse proxy, with room for several concurrent executions. |
| Pro | 6 / 8 GB / 320 GB / 20 TB | $22.99 | Queue mode with Redis and workers (each worker needs its own runner sidecar), or n8n Assistant's sandbox alongside PostgreSQL. |
| Power | 12 / 16 GB / 640 GB / 40 TB | $42.99 | Several busy instances on one machine, or workflows that process large files all day. |
Disk usage is mostly execution history. n8n prunes by default after 336 hours (14 days) or 10,000 executions, whichever comes first. As a theoretical illustration, at 50 KB per saved execution the default cap is about 500 MB; at 2 MB per execution, because workflows carry attachments, the same cap is about 20 GB. Either fits in 160 GB, but if you keep files for longer, lower the retention rather than buying disk.
Transfer is metered on our VPS plans. The 15 TB included with Standard works out, theoretically, to an average of about 46 Mbit/s sustained for a whole month; API traffic measured in kilobytes per call will never approach it, while a workflow that copies video between storage providers might. Inbound, only 80 and 443 need to be reachable. Port 5678 should never be public. Outbound port 25 is open on every VPS, so the Send Email node can reach any SMTP server, though a relay on port 587 is the realistic choice if you care about deliverability.
04/07
Where the workflow data sits.
Names, email addresses, invoice lines and support tickets pass through n8n, and by default it stores the input and output of every execution. On a VPS in ALP1 that history sits on a disk in Switzerland, on infrastructure operated by Hosta AG, a Swiss société anonyme in Riehen. The revised Federal Act on Data Protection has applied since 1 September 2023, and on 15 January 2024 the European Commission confirmed that Switzerland still provides an adequate level of protection, so a freelancer holding EU clients' personal data here needs no additional transfer safeguards for it. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia. That is not immunity from anything; it means the route to data on this server runs through Swiss legal process. Our page on Swiss jurisdiction covers this in more detail.
The location stops mattering once a workflow sends the data somewhere else. A contact pushed to a CRM, a prompt sent to a hosted language model, a row appended to Google Sheets: each copy lives under that provider's terms. Since 15 September 2024 Switzerland recognises US companies certified under the Swiss-U.S. Data Privacy Framework as adequate, so those transfers can be lawful, but they remain transfers, and n8n's AI Agent nodes and Assistant make one every time they call a hosted model. n8n's production recommendation for the Assistant's code sandbox is also an external service (Daytona); the bundled local sandbox is positioned for testing. If prompts must stay in the country, run the model on hardware here: CPU inference is limited by memory bandwidth, and among our dedicated servers only the Matterhorn (EPYC 9254) has twelve DDR5 channels, against two on the EPYC 4004 models. See dedicated servers.
A self-hosted n8n also contacts n8n's own servers for diagnostics, version notifications and templates unless you set N8N_DIAGNOSTICS_ENABLED, N8N_VERSION_NOTIFICATIONS_ENABLED and N8N_TEMPLATES_ENABLED to false. The stack below disables diagnostics and leaves version notifications on, because a banner announcing a security release is worth one outbound request.
05/07
Deploying n8n on a Cloud VPS in ALP1.
- 01
1. Order the server and point DNS
Order Cloud VPS Standard with Debian 13. Before you start the reverse proxy, create an A record for the hostname you will use (here
n8n.example.com) pointing at the VPS's IPv4 address, so the first certificate request succeeds. - 02
2. Install Docker Engine, Caddy and restic
Docker supports Debian 13 (trixie) from its own repository, which is preferable to Debian's
docker.iopackage. Caddy and restic come from Debian.apt update && apt install -y ca-certificates curl caddy restic install -m 0755 -d /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc cat > /etc/apt/sources.list.d/docker.sources <<'EOF' Types: deb URIs: https://download.docker.com/linux/debian Suites: trixie Components: stable Signed-By: /etc/apt/keyrings/docker.asc EOF apt update && apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin - 03
3. Write the Compose stack
Generate the secrets once. Copy
N8N_ENCRYPTION_KEYinto your password manager now: every credential stored in n8n is encrypted with it, and a database restored without it is unreadable, by you as much as by anyone else.mkdir -p /opt/n8n && cd /opt/n8n cat > .env <<EOF N8N_VERSION=2.45.7 N8N_DOMAIN=n8n.example.com N8N_ENCRYPTION_KEY=$(openssl rand -hex 32) N8N_RUNNERS_AUTH_TOKEN=$(openssl rand -hex 32) POSTGRES_USER=n8n POSTGRES_PASSWORD=$(openssl rand -hex 24) POSTGRES_DB=n8n EOF chmod 600 .env# /opt/n8n/compose.yml services: n8n: image: n8nio/n8n:${N8N_VERSION} restart: unless-stopped ports: - "127.0.0.1:5678:5678" environment: N8N_HOST: ${N8N_DOMAIN} N8N_PROTOCOL: "https" N8N_WEBHOOK_URL: "https://${N8N_DOMAIN}/" N8N_PROXY_HOPS: "1" GENERIC_TIMEZONE: "Europe/Zurich" TZ: "Europe/Zurich" N8N_ENCRYPTION_KEY: ${N8N_ENCRYPTION_KEY} N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS: "true" N8N_DIAGNOSTICS_ENABLED: "false" EXECUTIONS_DATA_MAX_AGE: "168" DB_TYPE: "postgresdb" DB_POSTGRESDB_HOST: "postgres" DB_POSTGRESDB_PORT: "5432" DB_POSTGRESDB_DATABASE: ${POSTGRES_DB} DB_POSTGRESDB_USER: ${POSTGRES_USER} DB_POSTGRESDB_PASSWORD: ${POSTGRES_PASSWORD} N8N_RUNNERS_MODE: "external" N8N_RUNNERS_BROKER_LISTEN_ADDRESS: "0.0.0.0" N8N_RUNNERS_AUTH_TOKEN: ${N8N_RUNNERS_AUTH_TOKEN} volumes: - n8n-data:/home/node/.n8n depends_on: postgres: condition: service_healthy runners: image: n8nio/runners:${N8N_VERSION} restart: unless-stopped environment: N8N_RUNNERS_TASK_BROKER_URI: "http://n8n:5679" N8N_RUNNERS_AUTH_TOKEN: ${N8N_RUNNERS_AUTH_TOKEN} depends_on: - n8n postgres: image: postgres:18 restart: unless-stopped environment: POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} POSTGRES_DB: ${POSTGRES_DB} PGDATA: /var/lib/postgresql/data volumes: - db-data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] interval: 5s timeout: 5s retries: 10 volumes: n8n-data: db-data:A few of these lines are deliberate. One
N8N_VERSIONdrives both images because n8n requires the runners image to match the n8n version exactly. External runner mode matters more than it looks: n8n's documentation warns that without it, anyone who can edit a workflow can potentially read the database, the encryption key and every stored credential, and internal mode is deprecated from 3.0 anyway. The port is bound to127.0.0.1because Docker inserts its own firewall rules for published ports, ahead of ufw; a plain-p 5678:5678on a public VPS is reachable regardless of what ufw says.PGDATAstays because PostgreSQL 18 changed its default data path, and without that line the volume would not cover the database. Retention is cut to seven days because history you do not keep cannot leak. - 04
4. Make the webhooks public and the editor private
Webhooks and forms must be reachable by the services that call them; the editor and its API need not be. Caddy runs on the host, so it sees real client addresses and obtains the certificate itself. Replace
/etc/caddy/Caddyfilewith:n8n.example.com { @public path /webhook/* /webhook-waiting/* /form/* /form-waiting/* @office remote_ip 203.0.113.10/32 handle @public { reverse_proxy 127.0.0.1:5678 } handle @office { reverse_proxy 127.0.0.1:5678 } respond 403 }Put your office address in the
@officematcher, or reach the editor over WireGuard if you have no fixed address. The cost of this layout is that test URLs (/webhook-test/,/form-test/) only answer from the office address, so an external service sending a test event will get a 403; test from the editor or switch to the production URL. If you use the MCP Server Trigger, add its path to@publicas well.Start everything and close the rest of the machine:
cd /opt/n8n && docker compose up -d systemctl reload caddy # firewall: allow 22, 80 and 443 inbound only (nftables or ufw)Open
https://n8n.example.comfrom the office address and create the owner account. - 05
5. Updates
Change
N8N_VERSIONin.env, then rundocker compose pull && docker compose up -d. Do it promptly. The fix for CVE-2026-21858 was released on 18 November 2025 in version 1.121.0, and the CVE was published on 7 January 2026, so instances patched in November were never exposed. Security releases are announced on community.n8n.io; r/n8n is useful for practical reports from other self-hosters but is not where n8n publishes advisories. - 06
6. Backups
Back up the database dump and the Compose file, and keep
.env(with the encryption key) in your password manager rather than in the backup. Our object storage buckets are S3-compatible, so restic can write to them directly:#!/bin/sh # /etc/cron.daily/n8n-backup (chmod 700) set -e cd /opt/n8n docker compose exec -T postgres pg_dump -U n8n -Fc n8n > /var/backups/n8n.dump export AWS_ACCESS_KEY_ID=<access-key> AWS_SECRET_ACCESS_KEY=<secret-key> export RESTIC_PASSWORD_FILE=/root/.restic-pass REPO=s3:https://<endpoint-from-your-panel>/<bucket> restic -r "$REPO" backup /var/backups/n8n.dump /opt/n8n/compose.yml restic -r "$REPO" forget --keep-daily 14 --keep-weekly 8 --pruneRun
restic -r "$REPO" initonce before the first backup, and restore onto a Starter VPS at least once; a backup you have never restored is a hypothesis. The VPS's own daily backups (+20 %) are a useful second layer, but they live with the same provider as the server.
06/07
Cost.
| Item | Per month |
|---|---|
| Cloud VPS Standard (4 vCPU, 4 GB, 160 GB NVMe, 15 TB, 1 Gbps) | $12.99 |
| Daily VPS backups (+20 %) | $2.60 |
| Object storage, 250 GB, for off-site restic backups | $1.99 |
| Total with both backup layers | $17.58 |
Yearly billing takes roughly 25 % off the VPS, which puts Standard at about $9.75 a month ($116.99 a year). The plan includes an IPv4 address (extra ones are $2 a month), a 1 Gbps port and open outbound port 25. It does not include management of n8n itself or an n8n Business or Enterprise license, which you buy from n8n. Current figures for every plan are on the pricing page.
We bill in US dollars and take payment in crypto only: Monero, Bitcoin, Tether (USDT), Ethereum, Litecoin and others, from private customers and businesses alike. Top-ups run from $25 to $5,000 and carry a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500, so a $100 top-up credits $110, about eight and a half months of Standard (theoretical). The unused paid part of a top-up is refundable within 14 days. Opening an account is no-KYC: an email address is enough.
07/07
Limits and acceptable use.
We run the hypervisor and the network. Inside the VPS, Debian, Docker and n8n are yours to configure and patch, and you are responsible for the traffic the server sends, including traffic from an instance someone else has taken over. The included monthly transfer is a quota, not unmetered fair use.
Several things n8n makes easy are not allowed under our acceptable use policy. Port 25 being open does not make it acceptable to loop a Send Email node over a bought or scraped address list. Workflows that pull articles, images or videos from other sites and republish them need the rights holder's permission: in Switzerland downloading a work for private use is permitted (software excepted), but making it available online without permission is not. A DMCA notice has no direct legal effect in Switzerland; we forward complete complaints to the customer, who must remove the content or justify it, and we act on a decision of a competent Swiss authority or where content is manifestly unlawful, following the Swico Code of Conduct Hosting (2025). Workflows that provide crypto-asset services, such as a payment gateway or trading bot operated for others, must not serve Russian nationals, people residing in Russia or entities established there, which Swiss sanctions have prohibited since 26 February 2026, subject to the exceptions in the ordinance. Compliance with n8n's Sustainable Use License is also yours to manage, not ours.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardRecommendedSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| SummitDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Summit |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Should I use SQLite or PostgreSQL?
SQLite is fine for one person and a handful of workflows, and it is what n8n uses when you configure nothing. n8n recommends PostgreSQL once more than a few users or round-the-clock workflows are involved, and queue mode over SQLite is not supported. Switching later does not carry data over automatically; you export and import workflows and credentials with the n8n CLI, so start on PostgreSQL if the instance is meant to last.
Do I need queue mode on a single VPS?
Usually not. Queue mode moves executions to worker processes through Redis, which helps when executions pile up, but on one 4 vCPU machine it adds Redis, a runner sidecar per worker and some webhook latency. Try capping concurrency with N8N_CONCURRENCY_PRODUCTION_LIMIT first (unlimited by default in regular mode), and move to the Pro plan if you genuinely need workers.
Can n8n keep its files in your object storage?
Not on the Community edition. n8n's S3 storage for binary and execution data requires a Business or Enterprise license, and n8n officially supports only AWS S3, describing other S3-compatible services as working but unsupported. On Community, binary data stays on the VPS disk, and our buckets serve as the backup target.
Should I move to n8n 3.0 now?
Not in production before the stable release planned for early December 2026, and not without a full backup, since n8n describes the move as one-way. Run the Migration Report on 2.x first. The stack above already uses Docker and external task runners, which 3.0 expects; the work that remains is mostly replacing removed nodes such as Function and Function Item with the Code node.
How do I reach you if something breaks?
Open a support ticket from the client panel. We can help with the VPS, the network and billing; problems inside n8n itself are better taken to community.n8n.io.
Sources
Every fact on this page, with its source
Checked 3 Nov 2026 unless noted.
Swiss law and authorities
- Fedlex, Federal Act on Data Protection, RS 235.1 (in force since 1 September 2023)fedlex.admin.ch
- Federal Office of Justice, recognition of the Swiss-U.S. Data Privacy Framework (since 15 September 2024)bj.admin.ch
- Swiss Federal Institute of Intellectual Property, copyright on the internetige.ch
- SECO press release of 25 February 2026 and RO 2026 92 (Ordinance SR 946.231.176.72, art. 20(2))seco.admin.ch
EU and other countries
- European Commission, adequacy decisions (Switzerland review, 15 January 2024)commission.europa.eu
- US Department of Justice, CLOUD Act resources (agreements with the UK and Australia only)justice.gov · checked 31 Oct 2026
Industry, providers and software
- GitHub, n8n release 3.0.0 (400+ integrations)github.com
- Docker Docs, Install Docker Engine on Debian (Debian 13 trixie supported, firewall limitations)docs.docker.com
- Swico, Code of Conduct Hosting (updated version published 13 March 2025)swico.ch
Other references
- n8n Docs, Install using Docker Compose (4 GB RAM / 2 vCPU minimum, PostgreSQL 18 and PGDATA)docs.n8n.io
- n8n Docs, Install with Docker (current stable 2.45.7, n8nio/n8n image, /home/node/.n8n volume)docs.n8n.io
- n8n Docs, One-line setup (bundled SQLite and sandbox, Daytona recommended for production)docs.n8n.io
- n8n Docs, Set up task runners (external mode, matching image versions, internal mode deprecated from 3.0)docs.n8n.io
- n8n Docs, Executions environment variables (pruning defaults 336 h / 10,000, concurrency limit)docs.n8n.io
- n8n Docs, Configure webhook URLs with reverse proxy (N8N_WEBHOOK_URL, N8N_PROXY_HOPS)docs.n8n.io
- n8n Docs, Isolate n8n (diagnostics, version notifications, templates)docs.n8n.io
- n8n Docs, Enable queue mode (Redis, PostgreSQL, SQLite unsupported)docs.n8n.io
- n8n Docs, Use external storage (Business/Enterprise only, AWS S3 officially supported)docs.n8n.io
- n8n Docs, License FAQ (Sustainable Use License, client work)docs.n8n.io
- n8n Docs, v3.0 breaking changesdocs.n8n.io
- n8n Blog, Introducing n8n v3 (beta 27 October 2026, stable early December, 2.x fixes for 12 months, Migration Report from 2.39)blog.n8n.io
- n8n Community, Announcing n8n version 3.0 (one-way upgrade)community.n8n.io
- Censys, CVE-2026-21858 advisory (CVSS 10, fixed in 1.121.0, disclosed 7 January 2026)censys.com
- The Stack, report on CVE-2026-21858 (fix released 18 November 2025)thestack.technology
ALP1·Swiss Alps
Your server in the Alps, ready when you are.
Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.
