Open source alternatives

Heroku alternatives: self-hosted platforms with git push deploys

Coolify, Dokku and CapRover compared as open source Heroku alternatives, plus when a managed platform is the better call. Licenses and setup checked December 2026.

Heroku made deploying an app feel like magic: push your code, and a few seconds later it is live with a database attached. Many teams started looking elsewhere after Heroku ended its free dynos in November 2022, and again in February 2026, when Salesforce published an update on Heroku’s future that limited new Enterprise contracts. Heroku revised that post on December 4, 2026 to say that nothing changes for existing customers and that credit-card sign-ups remain open. Even so, the price of a few small apps adds up, and a single virtual server running an open source platform can host many of them.

The three projects below give you the Heroku workflow on a server you rent or own. We checked each license and the latest releases on December 5, 2026.

Quick comparison

Project License How you deploy Interface Best for
Coolify Apache-2.0 Git repositories, Dockerfiles, Docker Compose, one-click services Full web dashboard Most people leaving Heroku
Dokku MIT git push with Heroku buildpacks or Dockerfiles Command line Developers who want Heroku’s exact workflow
CapRover Apache-2.0 Web upload, CLI, or webhook from your Git host Web dashboard Simple clusters and one-click apps

Coolify: the most complete dashboard

Coolify is the closest thing to a self-hosted Heroku with a modern interface. Connect a Git repository and it builds with Nixpacks, a Dockerfile or Docker Compose, issues HTTPS certificates automatically, and redeploys on every push. It can also start databases such as PostgreSQL, MySQL, Redis and MongoDB with scheduled backups to S3-compatible storage, plus a large catalog of one-click services. One Coolify instance can manage several servers over SSH.

Coolify is Apache-2.0 licensed and free to self-host, and version 4 is now a stable release line. A paid cloud plan runs the dashboard for you while your apps stay on your own servers. Choose Coolify when you want a web interface for everything and plan to host more than one or two apps.

Dokku: Heroku’s workflow on one server

Dokku calls itself the smallest PaaS implementation you have ever seen, and it is the most faithful copy of the Heroku experience. You add a Git remote and git push dokku main. Dokku detects the language with Heroku-compatible buildpacks, or uses your Dockerfile, then runs the app in Docker behind nginx. Commands like dokku config:set and dokku ps:scale mirror the Heroku CLI, and plugins add PostgreSQL, Redis, Let’s Encrypt certificates and more.

Dokku is MIT licensed and has been maintained since 2013. It is designed around a single server; multi-server setups are possible through its Kubernetes scheduler, but that is a bigger project. Choose Dokku if you liked the Heroku CLI and want the same habits on a cheap server.

CapRover: a web panel with a cluster option

CapRover wraps Docker, nginx and Let’s Encrypt in a web dashboard. You deploy by uploading a tarball, using its CLI, or connecting a webhook from your Git host, and you can install databases and popular apps from a one-click list. Because it runs on Docker Swarm, adding more servers to a cluster takes a few commands.

CapRover is Apache-2.0 licensed. Its dashboard is simpler than Coolify’s, and some one-click apps are maintained by the community, so check how current an image is before you rely on it.

What you take on when you self-host

A platform like Heroku does a lot of quiet work. Before you move production apps, plan for:

  1. Server updates and security. You patch the operating system and Docker, and you close every port you do not need.
  2. Database backups. Schedule them, send them off the server, and test a restore.
  3. Monitoring and alerts. Something has to tell you when the server or an app goes down. A self-hosted monitor such as Uptime Kuma, running somewhere else, works well.
  4. Capacity. Several apps on one server share memory and CPU. Leave headroom for builds, which use far more than the running apps.

When a managed platform is the better call

If nobody on your team wants to look after a server, a managed platform is still the sensible choice. Render, Railway, Fly.io and DigitalOcean App Platform all offer Git-based deploys and managed databases, with different pricing models. None of them is open source, so compare exit costs as well as monthly prices. If your app mostly needs a database, authentication and file storage, a backend platform such as Supabase, which you can use hosted or self-host, may replace much of what you used Heroku for.

How to choose

  • You want a dashboard, automatic HTTPS and one-click databases: Coolify.
  • You want git push and Heroku-style commands on one server: Dokku.
  • You want a simple web panel and an easy path to a small cluster: CapRover.
  • You do not want to run servers at all: a managed platform, chosen with a migration plan in mind.

Moving your backend too? See our Firebase alternatives and Datadog alternatives for monitoring, or browse the directory.

In the directory

Coolify logoApache-2.0

Coolify on GitHub (opens in a new tab)

Deploy apps, databases and one-click services to your own servers from a web dashboard, with automatic HTTPS.

Infrastructure
Good to know +

Good for: Hosting many apps on one or more virtual servers.

You are responsible for server updates, backups and monitoring.

Alternative to Heroku
Dokku logoMIT

Dokku on GitHub (opens in a new tab)

Push code with git and let Heroku-style buildpacks or a Dockerfile build and run it on your server.

Infrastructure
Good to know +

Good for: Developers who want Heroku's workflow on a cheap server.

Designed around a single server; multi-server setups need extra work.

Alternative to Heroku
CapRover logoApache-2.0

CapRover on GitHub (opens in a new tab)

Deploy apps and one-click databases through a web panel built on Docker, nginx and Let's Encrypt.

Infrastructure
Good to know +

Good for: Small teams that want a simple panel and an easy cluster.

Some one-click apps are community maintained; check image versions.

Alternative to Heroku
Supabase logoApache-2.0

Supabase on GitHub (opens in a new tab)

Start with Postgres. Add authentication, storage, realtime updates, and APIs around a database you control.

Development
Good to know +

Good for: Developers who want a SQL-based application backend.

Self-hosting means managing several services.

Alternative to Firebase