Repository navigation
Description
What problem will this feature address?
Problem Statement
If a VPS running Dokploy is compromised, users may need to:
- Uninstall Docker
- Remove Dokploy
- Clean or rebuild the server environment
In such cases, traditional VPS backups are not always safe, as they may also contain compromised files or malware. Additionally, VPS snapshots are often opaque and not easily auditable.
Currently, there is no built-in way to recreate all Dokploy-managed projects from clean infrastructure using declarative or script-based configurations.
Describe the solution you'd like
Proposed Solution
Introduce a feature that allows users to export all project definitions and configurations into script-based or declarative formats (similar to Infrastructure as Code).
This export should include:
- Project definitions
- Services and containers
- Docker images and tags
- Environment variables (optionally encrypted)
- Volumes and mounts
- Networks
- Domains and ports
- SSL configuration references
- Deployment settings
- Build and runtime options
The output could be:
- Shell scripts
- YAML/JSON files
- Docker Compose–like manifests
- Or a Dokploy-specific configuration format
These files should be usable to recreate all projects on a fresh Dokploy installation.
Describe alternatives you've considered
The only workaround now is to manually reconfigure everything again.
Additional context
Key Characteristics
- Reproducible: Enables deterministic rebuilding of all projects
- Auditable: Human-readable configuration files
- Secure: Sensitive values can be encrypted or excluded
- Portable: Works across fresh VPS instances
- Independent of VPS snapshots
Restore Workflow (Example)
-
Clean or rebuild VPS
-
Reinstall Docker
-
Reinstall Dokploy
-
Import project setup files
-
Dokploy recreates:
- Projects
- Services
- Networking
- Domains
- Deployment pipelines
Backup Storage Options
- Local export/download
- Push to remote storage (e.g., Amazon S3, MinIO, SFTP)
- Version control–friendly format (Git)
Why This Is Different from VPS Backups
| VPS Backup | Dokploy Project Export |
|---|---|
| Includes entire filesystem | Includes only project configuration |
| May contain compromised files | Clean, declarative definitions |
| Hard to audit | Human-readable |
| Vendor-specific | Portable across servers |
| Not reproducible | Fully reproducible |
Use Cases
- Security incident recovery
- Disaster recovery planning
- Migration between VPS providers
- Environment cloning (staging → production)
- Compliance and auditing
Optional Enhancements
- Scheduled automatic exports
- Diffing between exports
- Selective project export
- Secret rotation during restore
- Dry-run restore validation
Expected Impact
This feature would significantly improve Dokploy’s:
- Security posture
- Disaster recovery capabilities
- Appeal to DevOps-focused users
- Suitability for production workloads
Will you send a PR to implement it?
Yes
Activity
Siumauricio commentedon Apr 5, 2026
Closing as duplicate — exportable/declarative config is now tracked in #4008 (dokploy apply).