Coolify VPS Setup Guide 2026: Self-Hosted Vercel Alternative
Deploy Coolify on your VPS for a self-hosted Vercel/Netlify experience. Complete setup guide with Docker, SSL, and app deployments.
Coolify VPS Setup Guide: Your Own Vercel
Coolify is a self-hosted PaaS that turns your VPS into a Vercel/Netlify-like platform. Deploy apps from Git, automatic SSL, zero-downtime deployments — all on hardware you control.
What is Coolify?
What is Coolify?
Coolify handles the infrastructure complexity:
- Git integration — Push to deploy
- Automatic SSL — Let’s Encrypt built-in
- Multiple languages — Node, Python, PHP, Go, Rust, static sites
- Databases — One-click PostgreSQL, MySQL, Redis, MongoDB
- Docker support — Deploy any Dockerfile
- Webhooks — Automatic deployments on push
Think of it as self-hosted Heroku/Vercel at a fraction of the cost.
Why Coolify vs Vercel?
| Factor | Vercel | Coolify on VPS |
|---|---|---|
| Cost (3 apps) | $60/mo+ | $5-15/mo |
| Resources | Limited | Full VPS |
| Vendor lock-in | High | None |
| Cold starts | Yes | No |
| Custom domains | Limited free | Unlimited |
| Database hosting | Extra cost | Included |
Break-even point: If you’re paying >$20/mo on Vercel, Coolify saves money.
VPS Requirements
Coolify needs:
- Minimum: 2 vCPU, 2GB RAM, 30GB storage
- Recommended: 4 vCPU, 4GB RAM, 50GB+ storage
- OS: Ubuntu 22.04+ or Debian 12+
- Ports: 80, 443, 8000 (dashboard)
Recommended VPS Providers
| Provider | Plan | Specs | Price |
|---|---|---|---|
| Hostinger | KVM1 | 1 vCPU, 4GB RAM | $4.99/mo |
| Hetzner | CX21 | 2 vCPU, 4GB RAM | €5.39/mo |
| Vultr | VC2 | 2 vCPU, 4GB RAM | $24/mo |
Best value: Hostinger KVM1 — 4GB RAM for $4.99 handles 5-10 apps easily.
Installation Guide
Step 1: Create Your VPS
Using Hetzner as example:
- Sign up at Hetzner Cloud
- Create Project → Add Server
- Select: Ubuntu 22.04, CX21 (2 vCPU, 4GB RAM)
- Add your SSH key
- Create server, note the IP
Step 2: Point Your Domain
Before installing, set up DNS:
A coolify.yourdomain.com → your-server-ip
A *.coolify.yourdomain.com → your-server-ip
The wildcard is important — each app gets a subdomain.
Step 3: Connect and Prepare
ssh root@your-server-ip
# Update system
apt update && apt upgrade -y
# Set hostname (optional but nice)
hostnamectl set-hostname coolify
# Reboot to apply updates
reboot
Step 4: Install Coolify
One command installs everything:
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
This installs:
- Docker Engine
- Coolify application
- Traefik reverse proxy
- PostgreSQL for Coolify data
Installation takes 2-5 minutes.
Step 5: Access Dashboard
Open in browser:
http://your-server-ip:8000
Or if DNS is ready:
http://coolify.yourdomain.com:8000
Create your admin account on first visit.
Step 6: Configure SSL
In Coolify dashboard:
- Go to Settings → Configuration
- Set your Instance FQDN to
https://coolify.yourdomain.com - Enable Let’s Encrypt
- Enter your email for SSL notifications
- Save and wait for certificate
Now access via https://coolify.yourdomain.com
Deploying Your First App
Option A: From Git Repository
- Sources → Add GitHub/GitLab
- Authorize OAuth access
- Projects → New Project → New Resource
- Select Public Repository or your connected account
- Enter repo URL (e.g.,
https://github.com/you/app) - Coolify auto-detects: Node, Python, PHP, static, Docker
- Click Deploy
Coolify builds and deploys automatically. You get a URL like:
https://app-xxxx.coolify.yourdomain.com
Option B: Using Docker Compose
For existing Docker projects:
- Projects → New Resource → Docker Compose
- Paste or link to your compose file:
version: '3'
services:
app:
image: nginx:alpine
ports:
- 80:80
- Deploy
Option C: Deploy from Dockerfile
- Create resource → Dockerfile
- Link to repo containing Dockerfile
- Coolify builds and deploys
Common Deployments
Next.js App
# In Coolify:
# 1. Add Git source
# 2. Select your Next.js repo
# 3. Coolify auto-detects Node, uses build output
Build command: npm run build
Start command: npm start
Python/FastAPI
# Dockerfile
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
Static Site
Just point to a repo with index.html — Coolify serves it automatically.
WordPress
- New Resource → Services → WordPress
- One click deploys WordPress + MySQL
- SSL and domain handled automatically
Adding Databases
PostgreSQL
- Resources → New Resource → PostgreSQL
- Set password
- Deploy
Connection string appears in dashboard:
postgresql://user:password@postgres-xxxx:5432/postgres
Use in your apps via environment variables.
Redis
Same process:
- New Resource → Redis
- Deploy
- Use
redis://redis-xxxx:6379in your apps
MySQL/MariaDB
- New Resource → MySQL or MariaDB
- Configure
- Deploy
Automatic Deployments
GitHub Webhooks
Coolify automatically configures webhooks when you connect GitHub:
- Push to
mainbranch - Webhook fires
- Coolify pulls, builds, deploys
- Zero-downtime swap
Manual Triggers
In each app:
- Click Redeploy for manual trigger
- Use API for CI/CD integration:
curl -X POST https://coolify.yourdomain.com/api/v1/deploy \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{"uuid": "app-uuid"}'
Environment Variables
Per-Application
- Open app in dashboard
- Environment Variables tab
- Add key-value pairs:
DATABASE_URL=postgresql://...
API_KEY=secret123
NODE_ENV=production
Shared Across Apps
- Projects → Select project
- Shared Variables
- These inject into all apps in the project
Custom Domains
Add Domain to App
- Open app → Settings
- Domains → Add domain
- Enter:
app.yourdomain.com - SSL auto-provisioned
Multiple Domains
Add as many as needed:
app.yourdomain.com
www.yourdomain.com
yourdomain.com
All point to the same app.
Backup Strategy
Database Backups
Coolify supports scheduled backups:
- Open database resource
- Backups → Enable
- Set schedule (daily recommended)
- Configure S3/Minio destination
Application Data
For apps with persistent data:
# On VPS, backup Docker volumes
docker run --rm -v app_data:/data -v /backup:/backup \
alpine tar czf /backup/app-backup.tar.gz /data
Full VPS Snapshots
Use your provider’s snapshot feature:
Performance Tips
1. Enable Swap
fallocate -l 2G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile swap swap defaults 0 0' >> /etc/fstab
2. Prune Docker Resources
# Weekly cleanup
docker system prune -a --volumes -f
Or enable in Coolify settings.
3. Monitor Resources
# Check container stats
docker stats
Coolify dashboard shows resource usage per app.
4. Scale Horizontally
For high-traffic apps, add more VPS instances and use Coolify’s server management to distribute deployments.
Troubleshooting
App Not Deploying
# Check logs
docker logs coolify
# Check app build logs in dashboard
# Resources → App → Deployments → View logs
SSL Not Working
- Verify DNS is pointing correctly
- Wait for propagation (up to 24h)
- Check port 80/443 open in firewall
- Restart Traefik:
docker restart coolify-proxy
Out of Disk Space
# Check usage
df -h
# Clean Docker
docker system prune -a
# Remove old deployments in Coolify settings
Database Connection Refused
- Ensure database container is running
- Use internal Docker hostname (e.g.,
postgres-xxxx) - Check credentials in Coolify dashboard
Coolify vs Alternatives
| Platform | Complexity | Best For |
|---|---|---|
| Coolify | Low | General PaaS, multi-app |
| Dokploy | Low | Similar to Coolify |
| CapRover | Medium | Docker-centric |
| Portainer | Low | Container management |
| Kubernetes | High | Large scale |
Coolify wins on simplicity while offering enough power for most projects.
FAQ
How many apps can Coolify run?
On a 4GB VPS: 5-15 lightweight apps. More with careful resource management.
Is Coolify production-ready?
Yes, many companies use it. The v4 release is stable and actively maintained.
Can I use my own Docker registry?
Yes, configure in Settings → Docker Registries.
Does Coolify support monorepos?
Yes, specify the subdirectory containing your app.
How do I update Coolify?
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
Same install command updates to latest.
Summary
Coolify transforms a $5-15/mo VPS into a deployment platform that rivals Vercel/Netlify. For developers and small teams, it’s the sweet spot between DIY Docker and expensive PaaS.
Recommended Setup:
| Component | Choice | Cost |
|---|---|---|
| VPS | Hostinger KVM1 | $4.99/mo |
| Platform | Coolify | Free |
| Domains | Cloudflare | Free |
| Total | $4.99/mo |
Start here: Hostinger VPS → Install Coolify → Deploy apps.
Ready to get started?
Get the best VPS hosting deal today. Hostinger offers 4GB RAM VPS starting at just $4.99/mo.
Get Hostinger VPS — $4.99/mo// up to 75% off + free domain included
// related topics
// related guides
Dokploy VPS Setup Guide 2026: Open-Source Vercel Alternative
Deploy Dokploy on your VPS for a self-hosted deployment platform. Complete setup guide with Docker, Traefik, and automatic SSL.
tutorial$1 VPS Hosting 2026: Cheapest VPS Servers Starting at $1/Month
Looking for $1 VPS hosting? Compare the cheapest VPS providers starting from $1-3/month. Real specs, no hidden fees, honest reviews of budget VPS options.
tutorialCaddy Reverse Proxy Guide 2026: Automatic HTTPS Made Easy
Set up Caddy as a reverse proxy with automatic HTTPS, zero-config SSL, and simple Caddyfile syntax. Complete VPS deployment guide.
tutorialCloudflare Tunnel VPS Guide 2026: Expose Services Without Opening Ports
Set up Cloudflare Tunnel on your VPS to expose web apps securely without opening ports or revealing your server IP. Complete guide with Docker and DNS config.
Andrius Putna
I am Andrius Putna. Geek. Since early 2000 in love tinkering with web technologies. Now AI. Bridging business and technology to drive meaningful impact. Combining expertise in customer experience, technology, and business strategy to deliver valuable insights. Father, open-source contributor, investor, 2xIronman, MBA graduate.
// last updated: February 8, 2026. Disclosure: This article may contain affiliate links.