Welcome to HowToShipIt — practical how-to guides for developers: code, AI tools, and servers, explained step by step.

Coolify Setup: Self-Host Your Apps on a VPS (2026 Guide)

A Coolify setup takes one command, one dashboard login, and about ten minutes — and at the end of it you have your own private Heroku running on a VPS you already pay for. No per-app pricing, no usage meter ticking up while you sleep, no vendor deciding your hobby project is too expensive to keep alive. If you have ever watched a PaaS bill grow faster than your traffic, this guide is for you.

Coolify is an open-source, self-hosted platform-as-a-service. You install it on your own server, point it at a Git repository, and it builds the app, runs it in Docker, routes a domain to it, and issues a TLS certificate. This guide walks through the full path: picking a server, installing Coolify, locking down the dashboard before anyone else finds it, deploying your first app, adding a database, and keeping the whole thing updated. Every fact below was verified against Coolify’s official documentation and current release notes on 29 October 2026.

What Coolify Actually Is (and Isn’t)

Coolify is not a hosting provider. It is software that turns a server you control into a deployment platform. You bring the VPS; Coolify brings the workflow: git-push deploys, automatic HTTPS, one-click databases, preview deployments for pull requests, and a dashboard that shows every app, database, and service on every server you connect.

Under the hood it is Docker all the way down. Your apps run as containers, a reverse proxy (Traefik or Caddy) routes domains to them, and builds happen through one of three paths: Nixpacks, which auto-detects your stack and builds it; a Dockerfile in your repo, which takes precedence when you want full control; or a Docker Compose file for multi-service apps. A Next.js site with no Dockerfile deploys with essentially zero configuration.

What Coolify does not give you matters just as much. There is no global edge network — your app runs wherever your server sits, so visitors on the other side of the world get your server’s latency, not a CDN’s. There is no automatic horizontal scaling; when you outgrow one box, you add servers yourself and Coolify deploys to them. And there is no one else on call: if the underlying Ubuntu box has a disk failure or an unpatched kernel vulnerability, patching and recovery are your job. That trade is the whole deal, and it is a good one for side projects, client sites, and small production apps — just go in with your eyes open.

What You Need Before You Start

Coolify’s official documentation lists modest minimums: 2 CPU cores, 2 GB of RAM, and 10 GB of free disk, on amd64 or arm64. That is the floor for the panel itself. Builds are the hungry part — compiling a Node or PHP app while the panel and a database are already running will happily eat a 2 GB box alive. If you plan to build on the same server (the default), start with 4 GB of RAM; you can always scale down later, but an out-of-memory build failure at 2 a.m. is a miserable way to learn this lesson.

Use a fresh server. The docs say it plainly, and the reason is practical: Coolify installs Docker, configures its own networks, and takes over ports 80 and 443 for its reverse proxy. An existing Nginx, Apache, or another panel on the same box will fight it. A cheap VPS from Hetzner, DigitalOcean, or Vultr running Ubuntu 24.04 LTS is the standard starting point — Debian and the Red Hat, SUSE, Arch, and Alpine families are also supported, as is 64-bit Raspberry Pi OS.

Before you run anything, open the firewall ports Coolify needs: SSH (22), HTTP (80), HTTPS (443), and the dashboard itself (8000). If you followed our UFW guide and fail2ban guide, this is a two-minute job:

sudo ufw allow 22/tcp
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow 8000/tcp
sudo ufw enable

You will also want a domain name pointed at the server before you deploy anything public, because automatic HTTPS needs a resolvable hostname. An A record for your dashboard domain and one for each app is all it takes.

Coolify Setup: Install in One Command

SSH into your fresh server as root or a sudo-capable user and run the official installer. Download it first and read it before you pipe it to a shell — that is good hygiene for any install script, and Coolify’s own community guides recommend the same:

curl -fsSL https://cdn.coollabs.io/coolify/install.sh -o coolify-install.sh
less coolify-install.sh
sudo bash coolify-install.sh

Or, if you trust the source and want the one-liner from the official docs:

curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash

The script installs Docker Engine if it is missing, creates Coolify’s data directory at /data/coolify, generates SSH keys Coolify uses to talk to servers, pulls the Coolify containers, and starts the dashboard. On a clean VPS the whole thing takes a few minutes. When it finishes, it prints a URL like http://your-server-ip:8000.

Confirm it actually came up before you move on:

docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}'
ss -tlnp | grep -E ':(80|443|8000)\b'

You should see the Coolify containers running and port 8000 listening. If the dashboard does not respond, docker logs --tail 100 coolify is your first stop.

One version note, because it matters right now: the current stable line is v4.4.x, and v4.4.7 shipped on 21 October 2026 as a security release fixing critical dependency vulnerabilities, including the PHP2Shell flaws. The installer pulls the latest stable release, so a fresh install today already includes it — but if you installed Coolify earlier in October, update before you do anything else:

curl -fsSL https://cdn.coollabs.io/coolify/patch.sh | sudo bash

If you want to pin a specific version instead of taking latest — sensible on a production box — the installer accepts a version argument, for example sudo bash -s 4.4.7 appended to the install command.

Lock the Dashboard Down First

This is the step people skip, and it is the most important one in the whole guide. The first person to open the dashboard after installation becomes the root admin. There is no default password standing between the internet and your server’s deployment panel — just the fact that nobody has visited yet. So visit it yourself, immediately, and create the admin account before you do anything else.

Open http://your-server-ip:8000, create your account, and then do three things in order:

  1. Give the panel a real domain and HTTPS. In the dashboard settings, set your instance domain (for example coolify.yourdomain.com) and let Traefik issue a Let’s Encrypt certificate for it. Running your deployment panel over plain HTTP on a bare IP is not a configuration, it is an incident waiting for a coffee-shop Wi-Fi network.
  2. Restrict who can reach port 8000. Once the panel has its own domain with HTTPS, you no longer need 8000 open to the world. Tighten the firewall so the dashboard is reachable only from your IP, or bind it to localhost and reach it over an SSH tunnel. The panel controls every app on every connected server; treat its port like you treat SSH.
  3. Decide on automatic updates. Coolify updates itself automatically by default. For a hobby server that is genuinely convenient — security releases like v4.4.7 land without you noticing. For a production box, consider turning automatic updates off and updating on your own schedule, so a breaking change never lands the night before a launch.

There is also a cleaner option if you want to skip the exposure window entirely: the installer supports pre-creating the root account with environment variables, so the registration page is never public at all. Check the official installation docs for the current variable names before you run the script.

Deploy Your First App

With the panel secured, deploy something small and unimportant first. The workflow is the same whether the app is a weekend experiment or a client site, and a throwaway first deploy is how you learn where the sharp edges are.

  1. In the dashboard, create a project and add a resource. Choose Public Repository for a first test — no GitHub App or deploy key needed.
  2. Paste the repository URL and pick the branch. Coolify detects the build path: a Dockerfile wins if one exists, otherwise Nixpacks auto-detects the stack, and a Compose file handles multi-service apps.
  3. Set the port your app listens on and any build settings the detector got wrong. Most frameworks need nothing here.
  4. Add environment variables in the dashboard, not in a committed .env file. Secrets live per project and per environment, and preview deployments can have their own values.
  5. Click Deploy and watch the build log. A small Node app typically builds in under a minute; a big one with native dependencies takes longer, and that is normal.
  6. Add your domain in the app’s Domains tab — https://app.yourdomain.com — and redeploy. Traefik requests a Let’s Encrypt certificate automatically. The only hard requirements are a DNS record pointing at the server and port 80 open for the HTTP challenge.

Once that works, connect your real workflow: link GitHub, GitLab, or Gitea through the GitHub App or a deploy key, and every push to your main branch triggers a webhook that pulls, builds, and swaps containers with zero-downtime deployment. Open a pull request and Coolify builds a throwaway preview instance on a generated subdomain, then tears it down when the PR closes — the Vercel feature people pay for, included free.

Add a Database the One-Click Way

Most apps need a database, and this is where Coolify quietly saves you an afternoon. From the same project view, add a database resource — PostgreSQL, MySQL, MariaDB, MongoDB, and Redis are all one-click, and SQLite joined the list as a standalone database in the v4.4 release. Coolify provisions the container, creates the data volume, and wires the connection string into your app’s environment.

Two rules keep you out of trouble. First, keep databases private: the database port should not be exposed to the internet unless you have a specific reason and a firewall rule to match. Your app talks to it over the internal Docker network; the public internet does not need to. Second, give the data a volume and a backup plan on day one, not the day after the disk fills up. Coolify supports scheduled database backups to S3-compatible storage — configure one before the app has data worth losing. Our automated VPS backups guide covers the same discipline for the rest of the box.

Coolify vs the Alternatives, Honestly

Option What you pay What you give up
Coolify (self-hosted) Just the VPS bill Your time as sysadmin; no edge network; no autoscaling
Coolify Cloud From $5/month for the management plane, plus your servers Still your servers, still your ops — only the panel is managed
Heroku / Railway / Render Per-app, per-resource pricing that scales with usage Money, and some control over the runtime
Dokploy / CapRover Just the VPS bill Smaller ecosystems; Dokploy is the closest direct rival

The honest comparison is not Coolify versus Heroku on features — Heroku still wins on zero ops burden and a global edge. It is Coolify versus Heroku on the bill for apps that do not need those things. Three hobby apps plus Postgres and Redis on one $6 VPS is a very different monthly number from three Heroku dynos, and for a lot of developers that gap is the entire decision. As of mid-October 2026 the project sits at roughly 63,000 GitHub stars and 3.3 million Docker Hub pulls, so you are not betting on an obscure tool — but you are betting on your own willingness to run it.

When Coolify Is the Wrong Tool

Skip it, or at least think twice, if any of these describe you. If your app needs to scale horizontally on traffic spikes without human intervention, a managed platform’s autoscaling is worth paying for. If you need compliance certifications or an SLA with a phone number attached, self-hosting will not give you either. If you genuinely never want to think about servers — not patching, not disk space, not backups — then the PaaS bill is buying you something real, and resenting it is the wrong frame. And if your team already runs Kubernetes well, Coolify is a step backwards in orchestration power, not forwards.

For everyone else — solo developers, small agencies, indie hackers with a handful of apps — Coolify is the rare tool that removes a monthly bill without adding a weekly chore, provided you respect the maintenance it does need: updates, backups, and firewall hygiene, the same three things every VPS guide on this blog keeps coming back to.

Troubleshooting Checklist

When something goes wrong, work through this list before you reinstall anything. Most Coolify problems are one of four things:

  • Dashboard won’t load: check docker ps — are the containers actually up? Check ss -tlnp for port 8000, and check your firewall and cloud security group, not just UFW. Cloud providers have their own firewall layer, and it blocks more first installs than any Coolify bug.
  • Certificate won’t issue: verify the DNS record resolves to the server (dig +short app.yourdomain.com) and that port 80 is reachable. Let’s Encrypt cannot validate a hostname that does not resolve, and Coolify will silently serve a broken proxy target until it does.
  • Build fails: read the build log, not the status badge. Nine times out of ten it is a missing environment variable, a wrong start command, or a port mismatch between what the app listens on and what Coolify expects.
  • App deploys but returns 502: the container is up but the proxy cannot reach it — usually the app binds to localhost instead of 0.0.0.0 inside the container, or it listens on a different port than configured.

And one last habit worth building: a complete Coolify setup is not the install command — it is the install plus the lockdown, the first deploy, and a backup you have actually tested. Before you trust any install to production, deploy a throwaway app, break it on purpose, restore it from a backup, and update Coolify once. The afternoon you spend rehearsing those four moves is cheaper than the night you spend learning them during an outage.

Further Reading & References

All facts verified 29 October 2026 against Coolify’s official documentation and the sources above. Prices, versions, and defaults change — check the official docs before you run the installer on a production server.

Leave a Comment