Move from Coolify
BetaRead a Coolify installation over its API and recreate it in Deplo, data included.
Beta
This feature is currently beta/experimental and subject to change. It is not recommended for production. Try it out and share your feedback on our GitHub.
A wizard reads your Coolify installation over its API and recreates it here: applications, one-click services, databases, domains, variables, volumes and backup destinations, data included. The data is read by a Deplo agent on each Coolify server.
Before you start
- Turn the API on in Coolify's Settings. If it only accepts listed IPs, add the machine Deplo runs on.
- A token per Coolify team. In Keys & Tokens, API tokens, tick
root, from an account that is an admin or owner of the team. Without root, the token needsread,read:sensitiveanddeploy: tickdeployfirst, because Coolify clears the list when you tick it. Deplo checks at Connect and refuses a token that would import blanks.
A token only sees the team it was created in: switch team in Coolify for the next one. Each team is one run, queued on the server, so you can close the page.
On every source machine
- A snapshot of every machine. It is the only way back after a takeover.
- Root on each Coolify server, to run one install command. The Install step lists every server. The agent dials Deplo, so no port has to be open.
Run the migration
Snapshot the server. The final step removes Coolify.
Run the installer, the same command as any install:
curl -fsSL https://deplo.build/install.sh | bashIt finds Coolify and asks whether Deplo may replace it. Answer no and nothing is installed.
--yes does not answer this question; DEPLO_TAKEOVER=coolify does.
Open the address it prints. Until the ports move, Deplo answers over http through Coolify's
own proxy on port 80. When that is not possible, the installer prints an ssh -L tunnel instead,
for example ssh -L 3000:localhost:3000 [email protected].
Create your account, then choose. Bring your data over, or Start clean. Start clean deletes Coolify and everything it runs, and cannot be undone.
Connect, Install, Review. The panel address is filled in. Paste a token per Coolify team, run the printed command on any other Coolify server, tick what comes over, and press Start migration. Everything lands on this machine.
Take over the machine. It opens once every team has landed. Tick I have no other teams on
this Coolify, tick any service listed as losing its data, and type coolify.
Deplo stops Coolify, inherits its certificates, moves Traefik onto 80 and 443, removes Coolify's
containers, networks, images, /data/coolify and its SSH key in root's authorized_keys, and
restarts Docker. The apps' volumes and Coolify's database backups (/data/coolify/backups) stay
on the disk. The page moves to https by itself.
Deploy your apps. Open each app, check it, and press Deploy.
What lands as what
| On Coolify | Here |
|---|---|
Application, dockerfile | App built from its repository, with that Dockerfile |
Application, nixpacks / static | App built with Railpack. A publish directory becomes the Output directory, single-page setting included |
Application, dockerimage | App running that image |
Application, dockercompose | Compose stack |
| Service (one-click) | Compose stack, from the compose its author wrote |
| PostgreSQL, MySQL, MariaDB, MongoDB, Redis, ClickHouse | The same engine, with its data |
| Persistent storage | Volume, with its data |
| File storage | Config file under Storage |
| Environment variables | The app's variables, magic SERVICE_* values resolved |
| Preview-only variables | The app's preview variables |
| Shared variables (team, project, environment) | Shared variables at the same level, linked to the apps that used them |
| Domains, with port and path | Domains |
| HTTP basic auth | Access |
| Memory and CPU limits | Resources |
| Health check, published host ports | Settings -> Advanced |
| Scheduled tasks | Cron jobs |
| S3 storages and database backups to S3 | Backup destinations (tested on arrival) and schedules |
What changes on the way
- Temporary hostnames (
sslip.io,traefik.me,nip.io,deplo.site,localhost) get a newdeplo.siteaddress, unless the app lands on the same machine. Your own domains come across as they are. - Connection strings are rewritten to the database's new host,
db-<name>. Values an app stored itself (a savedsiteurl) are not: fix them from the app's Console. - A volume keeps the name you gave it. Coolify's
<resource id>-<name>arrives as<name>. - A volume pinned with
external: trueorname:was never the one running: Coolify renames every volume. Deplo copies what actually ran and names the pinned one in the report. - The compose is the one its author wrote, not Coolify's rendered copy. When Coolify only returns the rendered one, the report says so.
- A variable Coolify shows once arrives as a secret. When Coolify's API returns no value for it, it arrives empty and the report names the key: fill it under Environment.
- A
{{team.KEY}}reference to a variable of the same name becomes a link to that shared variable. A server-level shared variable is offered to the project; Deplo has no server scope. - A
$Coolify would have expanded arrives as written, and the report names it. - An address stored without
http://orhttps://arrives on plain http. - A second service name in one Environment is renamed: the second
dbbecomes<app>-db, and itsdepends_on, variables and domain follow. - A network you created yourself is dropped. Apps in the same Environment share one network.
- Security headers stay off on a moved app's domains. Turn them on under Security headers.
- Compose middleware labels come across when their kind is supported, router labels never. See Middlewares in a compose file.
- Published ports and host binds need their own permission. A port under 1024 cannot be published; use a domain.
What is left behind
- KeyDB and Dragonfly databases, named in the report.
- Coolify's own
COOLIFY_*variables. - Deploy keys and connected-source credentials. Attach a git connection; that also turns on auto-deploy.
- Registry passwords. Add the registry under Registries.
- A volume's own backup to S3. Coolify's API does not list it. One app backup here covers every volume.
- A database backup kept only on Coolify's disk. Set a destination under Backups.
- Custom labels, docker run options, network aliases, pre- and post-deploy commands, www redirects, CPU pinning and swap limits. Each is named in the report.
Backing out
The general rules are in Migrations. For a takeover:
- Before the ports move: Cancel and remove Deplo starts what the migration stopped, starts Coolify again, removes what Deplo created and uninstalls Deplo. It asks for the token again.
- After the ports move: only the snapshot. If the move itself fails, Deplo puts the ports back, starts Coolify again and offers Try again with the reason.
Troubleshooting
| Symptom | What to check |
|---|---|
| Coolify's API is turned off on that instance | Turn it on in Coolify's Settings. |
| Coolify only accepts API calls from an allowed IP | Add this Deplo's address to that list. |
| This token cannot read values, or cannot read compose files | Create a token with root, from an admin or owner. |
| This token cannot stop a service | The token has no deploy. Create one with root. |
| That token does not carry the permissions this needs | Add read and read:sensitive, or use root. |
| Coolify refused the token | It expired or was revoked. Create a new one under Keys & Tokens. |
| Coolify kept rate limiting Deplo | Coolify allows 200 requests a minute. Wait for other API users to quieten down. |
| would not answer for the team, project or environment shared variables | An older Coolify has no endpoint for that level. Copy those variables in by hand. |
Agents, volumes and the takeover: see Migrations.
Next steps
Did this page help you?