All posts

Blog

Best Self-Hosted PaaS in 2026, and How to Deploy Your First App on One

By · · 8 min read

If you're looking for the best self-hosted PaaS, here's my short answer: Dokploy. A self-hosted PaaS is a dashboard you install on your own server that does what Heroku, Vercel or Railway do for you: build your app from Git, run it, give it a domain with HTTPS, and add a database next to it. Dokploy does all of that, it's open source and free to run, and it has a one-click template for most apps people want to self-host. Coolify is the other big one and very close. CapRover, Dokku and Kamal are smaller and suit different habits.

Below I compare them in plain words, then show how to deploy your first app on Dokploy, step by step. At the end I show the easier way, where I asked Claude to check my Dokploy before deploying anything.

What a self-hosted PaaS actually does

PaaS means "platform as a service". On Heroku or Vercel, you push code and they handle the server. A self-hosted PaaS gives you the same experience, but on a VPS you rent yourself (Hetzner, DigitalOcean, Hostinger and others). You pay for the server, not per app, so one $5 to $10 box can run several apps and their databases.

What you give up is someone else watching it. Updates, backups and disk space are yours. A good self-hosted PaaS makes those a few clicks instead of a weekend.

The best self-hosted PaaS options at a glance

License How you deploy Dashboard One-click apps Several servers
Dokploy Apache 2.0 core, some paid enterprise parts Web UI: Git, Docker image, Docker Compose, templates Yes Yes, hundreds Docker Swarm, plus remote servers
Coolify Apache 2.0 Web UI: Git, Docker image, Docker Compose, templates Yes Yes, hundreds Many servers, one app per server
CapRover Apache 2.0 CLI, web UI, Git webhook Yes Yes Docker Swarm
Dokku MIT git push Only with paid Dokku Pro Through plugins Optional K3s scheduler
Kamal MIT CLI on your laptop, over SSH No No Yes, with your own load balancer
Easypanel Not presented as open source Web UI: Git, Docker, templates Yes Yes Cluster support in alpha, top paid plan

Which one should you pick?

  • You're new to self-hosting and want to click: Dokploy or Coolify. Both give you a dashboard, templates, databases and backups.
  • You want to grow past one server later: Dokploy (Docker Swarm and remote servers) or CapRover (Swarm).
  • You liked Heroku and live in the terminal: Dokku. You git push and it builds.
  • You have one app and want full control: Kamal. It ships containers from your laptop over SSH. No dashboard, no templates.
  • You want a polished panel and don't mind closed source: Easypanel, but its free plan stops at 3 projects.

I use Dokploy. I compared the two dashboards in Coolify vs Dokploy and the terminal tools in Dokku vs CapRover vs Dokploy. The rest of this post is about getting your first app live on Dokploy.

What you need

  • A VPS. Dokploy asks for at least 2 GB of RAM and 30 GB of disk. Ubuntu or Debian is easiest.
  • Ports 80, 443 and 3000 free. Dokploy runs Traefik on 80 and 443 and its own dashboard on 3000. Use a fresh server, not one that already runs another panel or nginx.
  • A domain you can add DNS records to. You can start without one and add it later.

Step 1: Install Dokploy

SSH into the server and run:

curl -sSL https://dokploy.com/install.sh | sh

When it finishes, open http://your-server-ip:3000 and create your admin account. That's the whole install.

Step 2: Create a project

Everything in Dokploy lives in a project. Click Create Project and give it a name. A project can hold several apps and databases, and it has its own environment variables they can share.

Step 3: Deploy your app

Inside the project, click Create Service. You have three ways in.

From Git (your own code):

  1. Choose Application and give it a name.
  2. In Provider, pick where the code lives. For a public repo, choose Git and paste the repo URL and branch. For a private repo, connect GitHub, GitLab, Bitbucket or Gitea once in Dokploy's settings, then pick the repo from the list.
  3. In Build Type, leave Nixpacks (the default) if you don't have a Dockerfile. It detects Node, Python, Go, PHP and more. Railpack is the newer builder from the Railway team. If your repo has a Dockerfile, pick Dockerfile. For a plain HTML site, pick Static.
  4. Open the Environment tab and add your variables, one KEY=value per line.
  5. Click Deploy and watch the build log.

From a template (an app someone else made): choose Template, search for the app (n8n, Ghost, Plausible, Uptime Kuma, Nextcloud and hundreds more), and click Create. Dokploy fills in the Docker Compose file and generates passwords for you. Then click Deploy.

From a Docker Compose file: choose Compose and paste your docker-compose.yml. This is the route for any app that has no template.

Step 4: Add a domain with HTTPS

  1. Open the app's Domains tab and click Add Domain.
  2. Type the host, like app.yourdomain.com, and the container port your app listens on (for many Node apps that's 3000).
  3. Turn on HTTPS and pick Let's Encrypt.
  4. At your DNS provider, add an A record for that host pointing to your server's IP. On Cloudflare, keep it DNS only (grey cloud) until the certificate is issued.

If you don't have a domain yet, click the dice icon next to the Host field. Dokploy generates a free test domain on sslip.io (it has your server's IP in it), so you can see the app running. Leave HTTPS off for that one.

Step 5: Add a database and backups (if your app needs one)

Click Create Service, then Database, and pick PostgreSQL, MySQL, MariaDB, MongoDB or Redis. On the database's page, copy the Internal Connection URL into your app's Environment tab. It stays inside the server, so you don't need to open a port.

Then set up backups once: add an S3 bucket under S3 Destinations in Dokploy's settings, open the database's Backups tab, and pick a schedule. Do a test restore. I wrote about why in which of my databases were actually backed up.

The easier way: just ask Claude

Everything above means learning where Dokploy keeps things. That's the part new people find overwhelming. You can skip most of it by connecting Dokploy to Claude (or any AI that speaks MCP) through Zeqqat. You add your Dokploy URL and an API key to Zeqqat once, paste Zeqqat's MCP URL into Claude as a connector, and then you just say what you want.

Before deploying anything, I asked:

I want to deploy my first app on my Dokploy from a public GitHub repo. Check what my Dokploy has and tell me what it will need from me. Don't create anything yet.

Here's what happened:

  1. Claude asked Zeqqat for my Dokploy's version: v0.31.4.
  2. It listed the Git providers connected to Dokploy. The answer was an empty list. So it told me: for a public repo, no problem, it would set the app's source to the plain Git URL and branch. For a private repo, I'd connect GitHub in Dokploy's settings first.
  3. It listed remote servers. Also empty, so everything runs on the one server Dokploy is on. That's what you want for a first app.
  4. It read what the build type tool accepts: nixpacks, railpack, dockerfile, heroku_buildpacks, paketo_buildpacks and static. It said it would keep Nixpacks unless my repo has a Dockerfile.
  5. It listed the templates, in case what I wanted already existed. Dokploy returned 602 of them, including Ghost 6.0.0, n8n 1.104.0, Nextcloud 33.0.6, Plausible v3.2.1, Uptime Kuma 2.5.8 and Vaultwarden 1.36.0.

Its answer was short: give me the repo URL, the branch, the port your app listens on, any environment variables, and the domain you want. Then it would create the project and the app, set the source and build type, add the variables and the domain, and deploy. If the app needs a password or a database, it asks Zeqqat to generate one and only ever sees a handle like {{zq_secret_...}}, never the value.

My Zeqqat connection allows reading, creating and editing, but delete is switched off, so Claude can set things up and can't remove anything. Every call carried the same one-line reason, so the activity log shows the whole check as one request.

What I took from it

The best self-hosted PaaS is the one you'll actually keep running. For most people starting out, that's a dashboard with templates and backups, which means Dokploy or Coolify. I pick Dokploy. Installing it is one command, and your first app is about five clicks. And you don't have to learn those clicks first if you'd rather tell your AI what you want.

Zeqqat is a free and open source MCP gateway for Dokploy. Self-host it or use zeqqat.com. The code is on GitHub.

FAQ

What is the best self-hosted PaaS for beginners?

Dokploy or Coolify. Both install with one command on a VPS and give you a web dashboard where you deploy from Git, Docker Compose or a one-click template, add databases, and get domains with HTTPS. Dokku and Kamal are good too, but they're command line tools with no free dashboard.

Is there a free open source alternative to Heroku I can self-host?

Yes. Dokploy (Apache 2.0 core), Coolify (Apache 2.0), CapRover (Apache 2.0) and Dokku (MIT) are all free to self-host. You only pay for the server they run on. Dokku is the closest to Heroku's git push feel; Dokploy and Coolify are closer to Heroku's dashboard.

How much does it cost to run a self-hosted PaaS?

The software is free. The server is the cost: Dokploy needs at least 2 GB of RAM and 30 GB of disk, which most VPS providers sell for a few dollars to around $10 a month. One server can run several apps and their databases, so the cost doesn't grow with every app the way it does on Heroku or Railway.