DEV Community

Cover image for How to Install Coolify on Contabo VPS: Complete Self-Hosted Vercel, Heroku & Supabase Alternative
Faysal Molla
Faysal Molla

Posted on Originally published at faysal.cloud

How to Install Coolify on Contabo VPS: Complete Self-Hosted Vercel, Heroku & Supabase Alternative

The Crippling Overhead of Modern PaaS Providers

Developer platforms like Vercel, Heroku, and Render make deploying web applications effortless: link a GitHub repository, push a commit, and watch your code deploy. However, their pricing scales ruthlessly: Vercel charges $20/seat/month plus punitive edge bandwidth charges, while Heroku charges $25 to $50 per dyno for basic memory tiers.

For an agency or software team running 10 microservices, 3 client staging environments, and 4 relational databases, commercial PaaS bills easily surpass $300 to $800 every month. Coolify is an open-source, self-hosted PaaS that provides the exact same developer experience as Vercel and Heroku on your own private infrastructure. Running Coolify on a Contabo Cloud VPS 2 ($11.50/mo for 6 vCPU cores and 16 GB RAM) lets you deploy dozens of production apps with zero extra cost.

Step 1: VPS Hardening & One-Line Coolify Installation

Connect to your fresh Contabo VPS as root:

ssh root@YOUR_SERVER_IP
apt update && apt upgrade -y
apt install -y curl ufw
Enter fullscreen mode Exit fullscreen mode

Open required firewall ports for HTTP, HTTPS, SSH, and the Coolify administration panel:

ufw allow 22/tcp
ufw allow 80/tcp
ufw allow 443/tcp
ufw allow 8000/tcp
ufw enable -y
Enter fullscreen mode Exit fullscreen mode

Execute the official automated Coolify installation script:

curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
Enter fullscreen mode Exit fullscreen mode

The installer automatically installs Docker, configures the Traefik reverse proxy, initializes the SQLite database, and launches the Coolify orchestrator in under 2 minutes.

Step 2: Onboarding & Securing the Dashboard

Open your browser and navigate to:

http://YOUR_SERVER_IP:8000
Enter fullscreen mode Exit fullscreen mode
  • Register your primary administrator name, email, and master password.

  • Under Settings > Instance Settings, set your custom Fully Qualified Domain Name (FQDN), such as coolify.yourdomain.com.

  • Coolify automatically provisions a Let's Encrypt SSL certificate and redirects all traffic to secure HTTPS.

Step 3: Connecting Your GitHub Account

Under Sources, add a GitHub App integration:

  • Click New Source > GitHub App.

  • Coolify generates a customized GitHub registration link. Click it, select your GitHub organization or personal profile, and grant repository access.

  • Webhooks are registered automatically: every time you push code to your main or staging branch, Coolify intercepts the webhook and deploys an updated container.

Step 4: Deploying a Next.js / Node.js Application

  • Click Projects > Default Project > Add New Resource.

  • Select Public/Private Repository and choose your Next.js repo.

  • Coolify automatically detects the package.json file, configures the Node.js build pack (or Nixpacks), and assigns an internal health check port.

  • Enter your custom domain (e.g., app.yourdomain.com).

  • Click Deploy. Coolify builds your production bundle, generates SSL certificates via Traefik, and serves the application globally.

Step 5: 1-Click Database Provisioning

Coolify lets you spin up managed databases with a single click: PostgreSQL 16, MySQL 8, MariaDB, Redis, ClickHouse, and MongoDB. Coolify configures automated daily backups that push compressed SQL dumps directly to a remote Contabo Storage VPS or AWS S3 bucket.

Frequently Asked Questions (FAQ)

How much RAM does Coolify need on a Contabo or Hostinger VPS?

Coolify itself uses ~250 MB RAM, and we recommend at least 4 GB–8 GB total RAM (such as Contabo VPS 1 or Hostinger KVM 2) when building Next.js and Docker images.

Summary: The Financial Verdict

By pairing Coolify with Contabo Cloud VPS, you enjoy the luxurious Git-push workflows of modern cloud platforms while slashing your monthly DevOps infrastructure expenses by over 90%.


Originally published at faysal.cloud.

Top comments (1)

Collapse
 
userxnom profile image
Abdullah Naseer •

The $11.50/mo for 6 vCPU and 16 GB, with Coolify itself at ~250 MB, is the number that makes this land — and the daily backups to S3 or a Contabo Storage VPS in step 5 is the detail most self-hosting guides skip.

Two things I would add before recommending this to someone running the 10 microservices plus 3 staging environments from the intro. First, once the FQDN and Let's Encrypt certificate are set, do you close port 8000 in ufw, or does the dashboard still need it open? Leaving the admin panel reachable on a public port after the domain is live feels like the one hardening step missing here.

Second, how do you stop one Next.js build from starving the rest on a single 16 GB box — do you set resource limits per service in Coolify, or schedule builds so they never overlap? And what was the PaaS bill you were comparing against for the over-90% saving — was that $11.50 replacing a measured monthly figure?