Migrate from Coolify, Dokploy or CapRover Without Touching the Old Server
说明与用途
将 Coolify、Dokploy 或 CapRover 的应用迁移到 Levelrail,保持旧服务器不受影响:创建只读令牌,执行干运行,应用导入,手动移动数据,然后切换 DNS。
问题
Migrating apps from Coolify, Dokploy or CapRover to Levelrail without disrupting the existing production environment.
结果
All supported resources are recreated in Levelrail; databases and volumes remain empty and require manual restoration; DNS is switched after health checks.
工作流
- 1. Create a read‑only token on the old platform (API token, API key, or login password).
- 2. Export the token to an environment variable (e.g., APP_IMPORT_SOURCE_TOKEN).
- 3. Run a dry run with levelrail-cli to list items and identify items that need manual attention.
- 4. Apply the import (optionally limiting to specific apps).
- 5. Manually handle items not migrated automatically: restore database dumps, copy volume data, connect repositories, verify secrets, re‑add health checks and cron jobs, and confirm domains.
- 6. Switch DNS to the new Levelrail instances once they are healthy.
- 7. (Optional) Delete imported resources if the import needs to be undone.
证据
The importer in Levelrail follows the opposite rule: it only reads from your old platform.
Run a dry run first. The dry run reads the source and prints one row per item with a status. It creates nothing.
If a name is already taken, the default adds a numeric suffix. Pass --collision skip to leave it alone instead.
Secret‑looking names (password, token, key, credential, DSN and similar) go through the secrets manager.
- 记录日期: 2026-10-10T20:56:11.030Z