[email protected]

How-to · PaaS & Cloud Exit

Migrate Heroku to Coolify or self-hosting

Editorial note: This guide was written to the best of our knowledge at the time of publication. Versions, commands, features, prices and licensing terms may change through vendor updates; the current information from the respective provider applies. Please verify critical steps independently before production use. All trademarks, product names and company names mentioned belong to their respective owners. As a rule, WZ-IT is not a partner of the vendors and projects mentioned and is not officially affiliated with them; existing partnerships are stated explicitly. This text does not replace individual professional, legal or tax advice. If any information is outdated or incorrect, please write to [email protected].

Do you want to replace Heroku while retaining controlled deployment and operations? WZ-IT provides Heroku migration from EUR 1,990 excluding VAT through target acceptance and can take over ongoing operations.

A migration from Heroku to Coolify or self-hosting translates a mature PaaS model into explicit components. Dynos, Procfile, buildpacks, config vars, add-ons, pipelines and Heroku Postgres need to keep working on the target or be replaced deliberately.

Is Heroku shutting down? Announcement of 6 February 2026

On 6 February 2026 Heroku announced its move to a sustaining engineering model: the focus is on stability, security, reliability and support, and Enterprise Account contracts are no longer offered to new customers. According to Heroku, nothing changes for existing customers or for customers paying by credit card. Platform changes still ship; the October 2026 update, for example, made PostgreSQL 18 the default and introduced the Heroku Postgres Advanced tier. A Heroku exit is therefore not an emergency measure but a plannable decision about long-term platform strategy.

Inventory the Heroku application and pipeline

Capture in particular:

  • apps and their Heroku Pipeline assignment
  • staging, review and production environments
  • dyno types, counts and resources
  • process groups in the Procfile
  • buildpacks, runtime versions and system dependencies
  • config vars and secret use
  • add-ons and their actual function
  • Heroku Postgres, Redis, storage and external data paths
  • scheduler, release phase and one-off dynos
  • domains, TLS, email, webhooks and OAuth callbacks
  • logs, metrics and alerting

The add-on list alone is insufficient. For every service, determine which data it holds, how the application connects and which export or replacement path is available.

Map dynos and the Procfile

Heroku layer Possible target mapping
web dyno application behind reverse proxy and TLS
worker dyno separate worker service without public endpoint
clock/scheduler scheduled platform job or system timer
release phase controlled migration or deployment step
one-off dyno administrative job or temporary task
config vars protected variables and secrets per environment
pipeline separate staging and production projects

A Procfile describes start commands, but not the complete operating model. Add health checks, resources, restart, concurrency, logging and scaling on the target.

The target can run on servers in Germany; select the location as part of the architecture. Sovereignty and compliance: GDPR and NIS2 discusses the operating decision.

Replace buildpacks with reproducible builds

Buildpacks detect language and dependencies partly automatically. During exit, make the build explicit and reproducible. Depending on the application, this becomes a Dockerfile or a transparent target-platform build configuration.

Validate:

  • runtime and package versions
  • lockfiles and private registries
  • operating-system packages and native libraries
  • build and release scripts
  • static assets and compilation steps
  • start command and expected ports
  • behaviour across multiple instances

Produce the build independently of Heroku and start it in an isolated target environment first.

Replace add-ons by function

Heroku add-ons may provide databases, cache, queues, email, monitoring, logging, search or object storage. Replace the required function and data path, not merely the product name.

Heroku add-on Target replacement
Heroku Postgres PostgreSQL resource in Coolify, data via dump/restore
Heroku Key-Value/Redis Redis resource, check compatibility and persistence
Heroku Scheduler scheduled task with its own schedule and monitoring

Plan export, secret rotation, acceptance and cancellation per service. Sources: Coolify databases, scheduled tasks.

Migrate Heroku Postgres to Coolify: dump, restore, validation

Heroku documents export and import paths for Postgres. Capture database version, size, extensions, roles, connections, pooling, write activity and permitted outage before selecting the method.

After restore, validate more than table counts. Include sequences, constraints, functions, triggers, extensions, time zones and critical business queries. Test the application against the new database in staging first.

An example based on Heroku import/export, not a recorded migration: capture and download the selected app backup, create an empty Postgres resource in Coolify and connect through a protected tunnel. APP-NAME and TARGET_DATABASE_URL are your own values; provide credentials securely.

heroku pg:backups:capture --app APP-NAME
heroku pg:backups:download --app APP-NAME
pg_restore --list latest.dump
pg_restore --no-owner --no-acl --exit-on-error --dbname="$TARGET_DATABASE_URL" latest.dump

For schema heroku_ext does not exist, Heroku documents creating CREATE SCHEMA heroku_ext; on the target first. Check available extensions and their schema mapping before restoring into an empty test database. --no-acl --no-owner omits grants and ownership. pg_restore must support the dump format. Validate row counts, sequence values, extensions and application queries; transfer final data during the agreed cutover. If the target database should be Supabase: Migrate Heroku Postgres to Supabase.

Staging, review apps and Git deployment

Git-based deployment remains possible. Heroku Pipelines and Review Apps do not automatically translate one to one. The target can provide fixed staging and production environments and optional short-lived previews.

Define branches, secrets, data access, domain, approval, health check and rollback separately. Preview environments must not alter production data unintentionally.

Cutover and ongoing operations

Before switching, validate web processes, workers, scheduler, data, email, webhooks, restart, logs, monitoring, backup and restore. Cutover coordinates in-flight jobs, write boundaries, final data sync, domain change and smoke tests. Keep the source available through the agreed rollback window where the data model and contract permit it.

For several applications or unknown add-ons, the PaaS Exit Review can be the more appropriate first step.

Use the PaaS exit checklist for acceptance and rollback.

Sources

Rather have it operated?

You'd rather not run PaaS & Cloud Exit yourself? WZ-IT handles setup, operations and maintenance - privacy-focused from Germany.

Enquiry

Assess a PaaS migration

Describe the source, application and intended target. We assess the migration path for runtime, data, delivery and ongoing operations.

  • You speak directly with Timo and Robin, who are technically responsible
  • A professional assessment of your situation
  • Concrete next steps for infrastructure, software or AI

The conversation is free and non-binding.

I recently worked with Timo and the WZ-IT team, and honestly, it turned out to be one of the best tech decisions I have made for my business. Right from the start, Timo took the time to walk me through every step in a simple and calm way. No matter how many questions I had, he never rushed me. The results speak for themselves. With WZ-IT, we reduced our monthly expenses from $1,300 down to $250. This was a huge win for us.
Aleksandr ShulikoCTO, EVA Real Estate
Timo and Robin, founders of WZ-IT

Assess a PaaS migration

I recently worked with Timo and the WZ-IT team, and honestly, it turned out to be one of the best tech decisions I have made for my business. Right from the start, Timo took the time to walk me through every step in a simple and calm way. No matter how many questions I had, he never rushed me. The results speak for themselves. With WZ-IT, we reduced our monthly expenses from $1,300 down to $250. This was a huge win for us.
Aleksandr ShulikoCTO, EVA Real Estate

Frequently Asked Questions

Answers to the most important questions

Customers from mid-sized business, industry and the public sector, in Germany and internationally

Read client reviews