Automation & AISave ~$696/yr vs Render + n8n Cloud

Self-Hosting Coolify + n8n on One VPS (2026): Memory Budget & Setup

Coolify (~1.2 GB) + Traefik + n8n + PostgreSQL consume ~2.4 GB idle and spike past 4.5 GB during git builds or heavy webhooks. KVM 2 (2 vCPU / 8 GB RAM at ~$7.03/mo with code XF3PLUTARXVF) is the rock-solid sweet spot.

Self-Hosting Coolify + n8n on One VPS (2026): Memory Budget & Setup
RATE SHEET

Hardware Spec & Verified Rate Sheet: Coolify + n8n

November 22, 2026
Hardware Spec & Verified Rate Sheet: Coolify + n8n
Provider / TierHardware & ArchitectureListNet BenefitCodeLink
Hostinger KVM 2
Recommended for Coolify + n8n
2 vCPU AMD EPYC · 8 GB DDR5 · 100 GB NVMe · 8 TB$8.79/mo~$7.03/mo (-20%)Claim -20%
Proton (VPN & Privacy)
WireGuard + VPS Privacy
Gluetun WireGuard + NAT-PMP · Swiss No-Logs · Mail/Drive/PassSubscription$20 USD creditClaim $20
01 Open the link to bind XF3PLUTARXVF (-20%) or 5AA9X0DA ($20 USD).02 Pick 12/24-mo KVM VPS or Proton Plus/Unlimited.03 Deploy Ubuntu 24.04 + Docker + WireGuard tunnel.
01 / HARDWARE TELEMETRY

Measured RAM, vCPU & NVMe Profile for Coolify + n8n

Min → Rec RAM
4 GB → 8 GB
Idle 2350 MB · Peak 5200 MB
Min → Rec vCPU
2 → 2 vCPU
AMD EPYC / High-Clock
Min → Rec NVMe
50 → 100 GB
PCIe Gen4 NVMe SSD
Primary Bottleneck

Coolify control-plane + Traefik + Nixpacks builds competing with n8n RAM

Projected Memory Footprint on Hostinger KVM 2 (8 GB RAM)Idle 29% · Peak 63% · Headroom 37%
02 / DOCKER COMPOSE & SHELL

Production Deployment Stack (Coolify + n8n)

Docker Stack Sizer
docker-compose.ymlyaml
# Coolify installs natively via its official script, then deploys this n8n stack
# via Services -> n8n with PostgreSQL (paste into Coolify Docker Compose service):
services:
  n8n:
    image: docker.n8n.io/n8nio/n8n:latest
    environment:
      - SERVICE_FQDN_N8N_5678
      - DB_TYPE=postgresdb
      - DB_POSTGRESDB_HOST=postgresql
      - DB_POSTGRESDB_DATABASE=${POSTGRES_DB:-n8n}
      - DB_POSTGRESDB_USER=${POSTGRES_USER:-n8n}
      - DB_POSTGRESDB_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
      - N8N_DEFAULT_BINARY_DATA_MODE=filesystem
      - EXECUTIONS_DATA_PRUNE=true
      - EXECUTIONS_DATA_MAX_AGE=168
    volumes:
      - n8n-data:/home/node/.n8n
    depends_on:
      postgresql:
        condition: service_healthy
    deploy:
      resources:
        limits:
          memory: 3G

  postgresql:
    image: postgres:16-alpine
    environment:
      - POSTGRES_USER=${POSTGRES_USER:-n8n}
      - POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
      - POSTGRES_DB=${POSTGRES_DB:-n8n}
    volumes:
      - postgresql-data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-n8n}"]
      interval: 10s
      timeout: 5s
      retries: 5
    deploy:
      resources:
        limits:
          memory: 1G
deploy-and-verify.shbash
# 1. Add 2 GB safety swap before installing Coolify
sudo fallocate -l 2G /swapfile && sudo chmod 600 /swapfile && sudo mkswap /swapfile && sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
# 2. Harden firewall & install Coolify
sudo ufw allow 22,80,443,8000/tcp && sudo ufw --force enable
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | sudo bash
03 / PRODUCTION FIELD NOTES

Critical Operational Insights

Always provision 2–4 GB of NVMe swap on Coolify nodes so Docker image extraction never triggers sudden container kills.
Schedule Coolify's built-in Docker cleanup cron weekly to reclaim dangling build cache layers.
04 / SECURITY & PRIVACY

UFW Firewall, TLS & WireGuard / ProtonVPN Hardening

Immediately bind Coolify to a custom HTTPS domain with Let's Encrypt and close port 8000 in UFW (`sudo ufw delete allow 8000/tcp`). Enable 2FA on Coolify and restrict SSH to key-only authentication.

Isolate container egress with ProtonVPN WireGuard + Proton Suite (US$20 in credits · code 5AA9X0DA).Claim US$20 on Proton
05 / VERIFIED DEPLOYMENT STACK

Deploy on Verified Infrastructure

KVM COMPUTE · EXTRA −20%

Hostinger KVM 2

~$7.03/mo
$8.79/mo
vCPU
2 EPYC
RAM
8 GB
NVMe
100 GB
24m Save
~$42
Renew: $12.99/mo · Free backups
SWISS PRIVACY · ACCOUNT CREDIT

Proton VPN & Unlimited

US$20
in credits
Tunnel
WireGuard
Docker
Gluetun + NAT
Suite
VPN·Mail·Drive
pr.tn/ref/5AA9X0DA

Frequently Asked Questions

Does Coolify work on Hostinger KVM 2?

Yes — KVM 2 provides 8 GB DDR5 RAM and 100 GB NVMe, enough for Coolify, n8n, Postgres, and 3–5 lightweight web apps simultaneously.

More blueprints in this category

All guides