-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
What problem will this feature address?
Dokploy lets users back up data volumes, and deploy to multiple remote servers, but it still lacks a unified workflow to relocate a running service—including Docker volumes, docker-compose.yml
, environment variables, and Traefik labels—from Server A to Server B without manual re-deployment.
Problems:
- Downtime & human error when migrations are done by hand
- Manual re-entry of environment variables, networks, and secrets
- Risk of data inconsistency between restored volumes and the new instance
- No easy way to rebalance load or free resources across nodes
Describe the solution you'd like
Proposed migration flow :
- Snapshot volumes
Use Volume Backups to create a hot/cold backup archive. - Export service configuration
Collectdocker-compose.yml
, environment variables, secrets, labels, and mounts. - Secure copy to target
Transfer the backup archive and compose file to Server B viadokploy-cli server cp …
. - Provision target server
Register Server B if needed using Multi Server / Cluster features. - Orchestrated restore
Restore volumes ({appName}_{volumeName}
naming) and deploy the service from the exported compose file. - Traffic switch-over
Health-check the new instance, then update Traefik to route production traffic to Server B. - Optional cleanup
Prompt the user to delete the old service and volumes after successful cut-over.
Describe alternatives you've considered
Alternative | Drawbacks |
---|---|
Duplicate service + manual restore | Partial copy; no automated routing |
Full redeployment by hand | Slow; prone to mistakes |
Cluster w/ round-robin | Does not move volumes/data |
Additional context
We need to free RAM on our main VPS without interrupting our SaaS. An automated migration flow would simplify scaling and cut infrastructure costs.
Will you send a PR to implement it?
Maybe, need help
omoney1 and simonboisset
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request