Skip to content

Exportable Project Setup Backup (Infrastructure-as-Code Style) #3420

Closed

Description

@saidiadegoke

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)

  1. Clean or rebuild VPS

  2. Reinstall Docker

  3. Reinstall Dokploy

  4. Import project setup files

  5. 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

  1. added
    enhancement
    on Jan 8, 2026
  2. Siumauricio commented on Apr 5, 2026

    @Siumauricio
    Contributor

    Closing as duplicate — exportable/declarative config is now tracked in #4008 (dokploy apply).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions