Skip to content

Manage Dokploy resources as-code (declarative config + GitOps) #3872

Closed

Description

@0xCyr

What problem will this feature address?

It would be great to manage Dokploy resources (apps, env vars, domains, build settings) through a declarative config file (e.g. dokploy.yaml) living in a Git repo, not just through the UI.

Why it matters: the UI-first model works well for getting started, but lacks version history, PR-based review, environment reproducibility, and automation; those are all things teams need in production.

Describe the solution you'd like

Suggested incremental path:

  1. Ensure full API coverage for everything the UI can do
  2. Define a declarative config schema (YAML/JSON)
  3. Add a CLI command like dokploy apply -f dokploy.yaml with diff/reconcile
  4. Then: Git-native reconciliation à la ArgoCD/Flux

Describe alternatives you've considered

/

Additional context

No response

Will you send a PR to implement it?

No

Activity

  1. added
    enhancement
    on Mar 3, 2026
  2. changed the title [-]Making Dokploy's config as-code[/-] [+]Manage Dokploy resources as-code (declarative config + GitOps)[/+] on Mar 3, 2026
  3. Siumauricio commented on Mar 4, 2026

    @Siumauricio
    Contributor

    @dosubot review

  4. dosubot commented on Mar 4, 2026

    @dosubot

    Thanks for the detailed feature proposal! Here's my review:

    Current State

    Your proposed path aligns well with what exists and what's missing:

    1. API Coverage ✅ — Dokploy already has comprehensive tRPC-based API coverage with 43 router modules covering apps, databases, domains, env vars, build settings, and more. JWT auth via x-api-key header. Most UI operations have API equivalents, though there are some gaps (e.g., GitHub provider selection during app creation).

    2. CLI — Current CLI is limited to basic create/delete/deploy/stop for apps and databases. No apply command or config file support yet.

    3. Declarative Config — The template system uses docker-compose.yml + template.toml with variable interpolation (${password:32}, ${domain}, etc.), but it's for pre-built templates only—not a general IaC system.

    Related Requests

    This isn't the first ask! The maintainer has acknowledged demand for declarative deployments:

    "We have received a couple requests on this! We have plans to add this soon! we need a declarative way to define your deployments"

    Related issues:

    Implementation Notes

    The existing tRPC API is comprehensive but imperative—each resource requires individual API calls. A dokploy apply would need:

    • Idempotent operations (create-or-update semantics)
    • State diff/reconciliation logic
    • Dependency ordering (projects → environments → apps → domains)

    The template TOML parser could serve as a starting point for the config schema design.

    This seems like a valuable addition that builds on existing architecture. You might want to coordinate with the related issues above to consolidate the discussion.

    To reply, just mention @dosu.


    Share context across your team and agents. Try Dosu.

    Leave Feedback Learn about dokploy with Dosu Add Dosu to your team

  5. Siumauricio commented on Apr 5, 2026

    @Siumauricio
    Contributor

    Closing as duplicate of #4008 which provides a detailed implementation plan for declarative YAML config (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