Skip to main content
After this guide your CapRover apps, env vars, domains and volumes exist on Levelrail, with data copied and DNS switched when you are ready. CapRover apps import over its HTTP API, read-only. The main difference from the other sources is that CapRover builds images on its own host and does not expose them, so every app needs a source here: a git repository or a registry image. Read the migration overview first for the flow and the downtime table.

What do I need before I start?

  • Levelrail installed on the new server and the CLI signed in (levelrail-cli auth login).
  • The CapRover login password. It is exchanged for a session token with POST /api/v2/login (the only non-GET request the importer makes).
  • The CapRover URL reachable from the Levelrail control plane. For a private address, set APP_IMPORT_ALLOW_PRIVATE_NETWORKS=true and pass --allow-private.
  • Each app’s git repository, or a registry you can push its image to.

What moves to Levelrail?

What do I still do by hand?

  • A source for every app. Connect the repository (with credentials for a private one) and run a build, or push an image to a registry and set it as the source.
  • Volume contents, by rsync commands you run.
  • Raw host port mappings are not imported. Publish a port in the app settings if it must be reachable.
  • Pre-deploy script. Reported as a plan item and not copied, because it is JavaScript run by CapRover and may hold credentials. Rewrite it as a shell command and set it as the app’s pre-deploy hook.
  • Node pin. Reported only. Node ids are never mapped, so pick the target node in the app’s placement settings.
  • Tags and deploy token. Tags are listed. When a deploy token is enabled, the token value is never read into the plan or the report: create a new one for the app’s build hook and update the caller.
  • Health checks. CapRover has none to import. Add a readiness path here.

What does not move?

  • Images built on CapRover: there is no recoverable image through its API. Rebuild from source.
  • Databases as a feature. CapRover runs databases as ordinary apps or one-click apps, so nothing maps to a managed database. Create a managed database here and copy the data.
  • Certificates, DNS records, deploy history, logs and metrics.
  • captain-definition files and one-click app definitions. Neither has an importer yet. The feature map lists where each CapRover feature lives here.

How do I run the migration?

1

Dry run

2

Import

Per-app proxy flags (force HTTPS, websocket support, redirect domain, basic auth user) are listed as domain policy lines in MIGRATION.md; the basic auth password is never imported.Apps are created without a running image. The report names the repository and branch where one is known. For verdicts and one-click fixes, use levelrail-cli migrate plan --platform caprover --url https://captain.example.com, then add --apply --only ID.
3

Give each app a source and build

Connect the git repository or set the registry image on the app, then deploy it. See Importing apps.
4

Move database data

Create a managed database of the same engine, with the same or a newer major version. Then copy:
The CapRover database container must publish a port the Levelrail node can reach. Publish it temporarily and restrict it by firewall. Point the app at the managed database and set its connection variable.
5

Copy volumes, check, switch

How long is the downtime window?

The database copy is a full dump and restore with row counts compared, repeatable, with the source read-only. There is no incremental sync. Pause the old app, run the final copy, start the app here, switch DNS. The window is the final copy time plus a restart. Apps without a database and without volumes can move with no outage you would notice. See the downtime table.

How do domains and TLS switch over?

CapRover runs nginx on ports 80 and 443. Point DNS at a new server, or install Levelrail in coexist mode. Lower the TTL to 300 seconds a day ahead and let levelrail-cli migrate cutover tell you when it is low enough. Certificates are issued here on first use once DNS points here. See Domains and ingress.

What if something goes wrong?

Use the CapRover password, not a token, and check the URL scheme
Expected. Connect a repo or registry image and deploy
The app was not exposed in CapRover. Add the domain by hand on the app
The source database port is not reachable from the Levelrail node

How do I verify and roll back?

Run levelrail-cli migrate cutover --verify after you switch DNS. It checks the certificate, the health path and DNS. The copy only reads the old server, so nothing there is changed. To roll back, restart the old app if you paused it and point DNS back at the old server.

When should I stay where I am?

CapRover’s one-click apps and simple Swarm setup already cover what you run, and you do not want to re-point apps at a git source. Levelrail has no recorded run against a live CapRover. See CapRover alternative and the comparison.
Last modified on November 27, 2026