Heroku Alternatives (and Render Alternatives) You Can Self-Host
If you're looking for Heroku alternatives or Render alternatives you can self-host, the one I use is Dokploy. It does what you liked about Heroku and Render (connect a GitHub repo, add Postgres, set variables, get a domain with HTTPS) on a VPS you rent yourself. It's open source and free to run. It can even build your app with Heroku's own buildpacks, so an app that deploys on Heroku today usually builds on Dokploy without a Dockerfile.
Below is why people are leaving, the other options, and how to move a typical app (a web process plus Postgres) to Dokploy, step by step. At the end I show the easier way, where I asked Claude to work out the move for me.
Why people look for Heroku alternatives and Render alternatives
Heroku stopped growing. On February 6, 2026, Heroku announced it is moving to a "sustaining engineering model focused on stability, security, reliability, and support", rather than new features. Existing customers keep running with no change to pricing or billing, but new Enterprise contracts are no longer offered. Nothing breaks today. People just don't want to build on a platform that has said it's in maintenance.
Render's free tier is a trial, not a home. Free web services on Render spin down after 15 minutes without traffic and take about a minute to wake up. A free Render Postgres database expires 30 days after you create it. The cheapest paid web service is $7 a month for 512 MB of RAM, and the cheapest paid Postgres is $6 a month for 256 MB (Render's pricing page, December 2026). Two or three small apps with databases add up fast.
One server can hold all of it. A VPS with 4 GB of RAM costs about what one or two paid services cost on these platforms, and it runs several apps and their databases side by side. You give up someone else watching it, and you take on backups and updates.
Heroku and Render alternatives at a glance
| Where it runs | Deploy from GitHub | Builds with Heroku buildpacks | Postgres built in | Domains and HTTPS | |
|---|---|---|---|---|---|
| Dokploy | Your VPS | Yes, plus GitLab, Bitbucket, Gitea, any Git URL | Yes | Yes, plus MySQL, MariaDB, MongoDB, Redis | Yes (Traefik, Let's Encrypt) |
| Coolify | Your VPS | Yes | No (Nixpacks or a Dockerfile) | Yes | Yes |
| Dokku | Your VPS | git push, no dashboard |
Yes | Through a plugin | Through a plugin |
| CapRover | Your VPS | Through a webhook or its CLI | No (a Dockerfile) | One-click apps | Yes |
| Railway, Fly.io | Their cloud | Yes | No | Yes | Yes |
Railway and Fly.io are hosted platforms, so you swap one bill for another. Dokku is the closest to Heroku's git push feel in a terminal. If you want Heroku's dashboard on your own server, the two to look at are Dokploy and Coolify. I compared them in Coolify vs Dokploy and the wider field in best self-hosted PaaS. The rest of this post is Dokploy.
What you need
- A VPS. Dokploy asks for at least 2 GB of RAM and 30 GB of disk. Ubuntu or Debian. Hetzner, DigitalOcean, Hostinger and others all work.
- Ports 80, 443 and 3000 free. Dokploy runs Traefik on 80 and 443 and its dashboard on 3000.
- A domain you can add DNS records to.
Step 1: Install Dokploy
SSH into the server and run:
curl -sSL https://dokploy.com/install.sh | sh
Open http://your-server-ip:3000 and create your admin account.
Step 2: Write down what your app uses today
For each app, note:
- The GitHub repo and branch it deploys from.
- The config vars. On Heroku,
heroku config -s -a your-appprints them all asKEY=valuelines you can paste later. On Render, they're in the service's Environment tab. - Your Procfile. The
web:line is your app. Anyworker:line is a second process you'll run as its own app in Dokploy. - Scheduled jobs. Heroku Scheduler or Render cron jobs, with their commands and times.
Keep the old app running until the very end. Nothing here touches it.
Step 3: Create the Postgres database
Do the database first, because the app needs its address.
- In Dokploy, create a project (call it anything).
- Click Create Service, then Database, then PostgreSQL.
- Give it a name, a database name, a user and a strong password. Pick a Postgres version at least as new as the one you run now, so the restore works.
- Click Deploy.
On the database's page, Dokploy shows the Internal Connection URL. That's what your app will use. It stays inside the server's Docker network, so you don't open a port for it.
Step 4: Move the data
From Heroku, take a fresh backup and download it:
heroku pg:backups:capture -a your-app
heroku pg:backups:download -a your-app
That gives you latest.dump.
From Render, copy the database's External Database URL and dump it from your computer (with a pg_dump at least as new as Render's Postgres):
pg_dump "EXTERNAL_DATABASE_URL" -Fc --no-owner --no-acl -f latest.dump
Then copy the file to the server and restore it into the new database:
scp latest.dump root@your-server-ip:/root/
docker ps --format '{{.Names}}' | grep your-db-app-name
docker cp /root/latest.dump CONTAINER:/tmp/latest.dump
docker exec -it CONTAINER pg_restore -U your_user -d your_db --no-owner --no-acl /tmp/latest.dump
your-db-app-name is the App Name shown on the database's page in Dokploy. If your app writes all day, turn on maintenance mode first (heroku maintenance:on, or suspend the service on Render) so the dump is the last word.
Step 5: Deploy the app with Heroku buildpacks
- In the same project, click Create Service, then Application.
- In Provider, pick GitHub (connect your GitHub account once in Dokploy's Git settings), then the repo and branch.
- In Build Type, pick Heroku Buildpacks. Dokploy uses Heroku's version 24 builder by default, and you can set another version in the same place. Heroku's builder reads your Procfile and runs the
web:process. If your repo has a Dockerfile, pick Dockerfile instead. Nixpacks, Dokploy's default, works for most apps too. - Open the Environment tab and paste the config vars from Step 2.
- Click Deploy and watch the logs.
Three things to fix while you paste:
- Replace
DATABASE_URL. Heroku and Render set it for you. In Dokploy, paste the Internal Connection URL from Step 3. - Set
PORTyourself. Heroku and Render hand your app aPORT. AddPORT=3000(or whatever your app listens on) so you know which port the domain points at. - Drop the add-on variables you no longer use, like
HEROKU_POSTGRESQL_*_URLor a Redis add-on URL. If you need Redis, create it in Dokploy the same way as Postgres and use its internal URL.
Turn on Autodeploy and every push to that branch redeploys, like on Heroku and Render.
Got a worker? Create a second application from the same repo, same build type and variables, and in its Advanced settings put the worker: command from your Procfile in Run Command. It runs alongside the web app and needs no domain.
Got scheduled jobs? Open the app's Schedules tab and add each job with its command and a cron expression. That replaces Heroku Scheduler or Render cron jobs.
Step 6: Add the domain with HTTPS
- Open the app's Domains tab and click Add Domain.
- Type the host, like
app.yourdomain.com, and the container port (thePORTfrom Step 5). - Turn on HTTPS and choose Let's Encrypt.
- At your DNS provider, add an A record for that host pointing to the server's IP. On Cloudflare, keep it DNS only (grey cloud) until the certificate is issued.
When the app answers on its new domain and the data looks right, shut the old one down.
Step 7: Set up backups
Heroku and Render did this quietly for you. On your own server, you do it once:
- Add an S3 bucket (AWS, Cloudflare R2, Backblaze B2 and others work) in Dokploy's settings under S3 Destinations.
- Open the database's Backups tab, pick that destination, set a schedule and how many backups to keep.
Then 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. You can skip most of that 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 moving anything, I asked:
I'm moving a Heroku app with a Procfile (a web process and a worker), Heroku Scheduler and Postgres to my Dokploy. Work out what Dokploy needs from me. Don't create anything yet.
Here's what happened:
- Claude checked my Dokploy's version first:
v0.31.4. - It searched Zeqqat for "build type heroku buildpacks" and read the tool that sets how an app builds.
heroku_buildpacksis one of its options, next tonixpacks,railpack,dockerfile,paketo_buildpacksandstatic, and it takes aherokuVersion. It said it would leave that empty so Dokploy uses its default. - For the worker, it read the tool that updates an app's settings and found a
commandfield (the Run Command in the dashboard). So the worker becomes a second app from the same repo with theworker:line as its command. - For Heroku Scheduler, it read the tool that creates scheduled jobs: a name, a cron expression and a command, attached to an application.
- For the database password, it didn't make one up and it didn't ask me for one. It asked Zeqqat to generate it, and got back a handle instead of a value:
{{zq_secret_2enz21dg1dudb39x}}. Zeqqat fills in the real password when the call runs. Claude never sees it, and neither does this blog post.
Its answer was a plan, in order: create Postgres, create the web app with Heroku buildpacks, set variables with the new DATABASE_URL and a PORT, create the worker app with its command, add the scheduled jobs, add the domain, deploy, then backups. The data copy is the one part it can't do through Dokploy, because that's pg_dump and pg_restore, so it handed me those commands.
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
Leaving Heroku or Render is less work than it looks, because Dokploy builds the same way Heroku does. The app moves almost as is: repo, buildpacks, variables, a domain. The real work is the database copy and the backups, which the platform used to do for you. Do those two carefully and the rest is an afternoon. And you don't have to learn Dokploy first if you'd rather ask your AI to do it.
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 alternative to Heroku?
Dokploy or Coolify if you want a dashboard, Dokku if you want git push in a terminal. Dokploy can build with Heroku's own buildpacks and reads your Procfile, so most Heroku apps build the same way without a Dockerfile.
Is Heroku shutting down?
No. In February 2026 Heroku said it is moving to a sustaining engineering model, focused on stability, security, reliability and support rather than new features. Existing customers keep running with no change to pricing or billing. New Enterprise contracts are no longer offered.
Is there a free alternative to Render?
Self-hosting is the closest. Dokploy is free and open source, and you pay only for the server. Unlike Render's free tier, your apps don't spin down after 15 minutes and your Postgres database doesn't expire after 30 days, because it all runs on a VPS you rent.