Install Coolify on a Hostinger VPS: your own Vercel/Heroku for a flat price
Coolify gives you git push deploys, automatic HTTPS, databases and preview deploys on your own server. Install it on a Hostinger VPS, put the dashboard on your domain, deploy a first app and lock down the ports.
What Coolify is, and when it's worth it
Coolify is an open-source platform you install on your own server. It gives you most of what Vercel, Netlify or Heroku do: connect a Git repo, push, and it builds and deploys with HTTPS. It also runs databases (Postgres, MySQL, Redis, MongoDB) and one-click services, and it can deploy a preview for each pull request.
It's worth it when you run several apps and want one dashboard for all of them. If you only have one app and you're happy with a deploy script, the plain setup in our Next.js and GitHub Actions guides is lighter.
Which plan you need
Coolify needs at least 2 CPU cores and 2 GB of RAM to run itself, and builds happen on the same server. Builds are where memory runs out.
| Plan | Good for |
|---|---|
| KVM 1 (1 vCPU, 4 GB) | Below Coolify's 2-core minimum. It installs, but builds are slow. Fine for trying it out |
| KVM 2 (2 vCPU, 8 GB) | The sensible starting point: a handful of apps plus a database or two |
| KVM 4 (4 vCPU, 16 GB) | Many apps, frequent builds, or preview deploys for a team |
Option A — The Coolify template
Hostinger lists Coolify among its VPS OS templates. Choose it when you create the server, or reinstall an existing one from the VPS settings, and Coolify is installed for you on Ubuntu. Then skip to "First login" below.
Option B — Install it yourself
Start from a fresh Ubuntu 24.04 server that you've secured (SSH keys, updates, a firewall). Coolify's installer sets up Docker and everything it needs. Run it as root or with sudo:
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | sudo bashFirst login
When the installer finishes, open `http://YOUR_SERVER_IP:8000` and create the admin account straight away. Until an account exists, whoever opens the URL first can claim the instance.
Coolify then asks where to deploy. Choose "This machine" (localhost) to run apps on the same server.
- Port 8000 is the dashboard until you give it a domain.
- Ports 6001 and 6002 carry the dashboard's realtime updates and the web terminal.
- Ports 80 and 443 belong to Coolify's proxy (Traefik), which serves your apps with HTTPS.
Put the dashboard on your domain
Add an A record for a subdomain such as `coolify.example.com` pointing at the server, plus a wildcard `*.example.com` if you want Coolify to give every app its own subdomain automatically.
In Coolify, open Settings, enter `https://coolify.example.com` as the instance domain and save. The proxy requests a Let's Encrypt certificate, and the dashboard is now on HTTPS.
Deploy your first app
Using a GitHub repo as an example:
- Projects → Add → pick the environment (production) → New resource.
- Choose a public repository, or connect the Coolify GitHub App for private repos and automatic deploys on push.
- Pick the build pack. Nixpacks detects Node, Next.js, Laravel, Django and most common stacks. Choose Dockerfile or Docker Compose if your repo has one.
- Set the port your app listens on (3000 for Next.js), add environment variables, and set the domain, e.g. `https://app.example.com`.
- Click Deploy and watch the build log. Later pushes to the branch redeploy automatically.
Lock down the ports
Coolify publishes ports through Docker, and Docker adds its own iptables rules that go around UFW. A UFW rule that blocks port 8000 won't actually block it. Use Hostinger's VPS firewall in hPanel instead, because it filters traffic before it reaches the server.
| Port | Keep open? |
|---|---|
| 22 (SSH) | Yes, ideally only from your IP |
| 80, 443 | Yes, for your apps and the dashboard |
| 8000 | Close once the dashboard is on your domain |
| 6001, 6002 | Close once the dashboard is on your domain; the proxy handles them from then on |
| Database ports (5432, 3306…) | Only if you made a database public on purpose; prefer keeping them internal |
Backups and updates
Coolify can back up the databases it manages on a schedule, to the server or to S3-compatible storage such as Cloudflare R2 or Backblaze B2. Set an S3 target, because a backup on the same server doesn't help if the server is lost. Hostinger's weekly VPS backups and snapshots are a second safety net for the whole disk.
Updates are one click in the dashboard, and you can turn on automatic updates. Read the release notes before updating a busy server, and take a snapshot first.
Frequently asked questions
Is Coolify free?
Yes. The self-hosted version is open source and free. You pay only for the server. Coolify also sells a hosted dashboard (Coolify Cloud) that manages your own servers for a fee.
Can Coolify replace Vercel for Next.js?
For most apps, yes: Git deploys, HTTPS, environment variables and preview deploys all work. You lose Vercel's global edge network and its managed analytics, and you're responsible for the server.
Can I run Coolify on KVM 1?
It installs, but KVM 1 has one CPU core and Coolify recommends at least two. It's fine for testing. For real apps, KVM 2 builds much faster.
Why can I still reach port 8000 after blocking it in UFW?
Docker writes its own firewall rules that bypass UFW. Block the port in Hostinger's VPS firewall in hPanel, which sits in front of the server.
Ready to save an extra 20% with coupon WEBHOST2026?
Get my discount link →Disclosure: links to Hostinger on this page are referral links. If you buy through them we may earn a commission, at no extra cost to you. It doesn't change what we recommend. About us
Keep reading
How to point a domain to your Hostinger VPS (A records, step by step)
Find your VPS IP, add the right A and AAAA records whether your domain is at Hostinger, GoDaddy or Namecheap, and check propagation before you ask Let's Encrypt for a certificate.
TutorialsSecure a new Hostinger VPS: the 10-minute checklist
SSH keys, no root or password logins, a firewall, Fail2ban, automatic security updates and snapshots. The minimum to do before a fresh VPS goes on the internet, with copy-paste commands.
TutorialsMove a Next.js app from Vercel to a Hostinger VPS
What actually changes when you leave Vercel: env vars, images, cron, storage, analytics and DNS. A migration checklist with no downtime, plus what you'll miss.