dokploy_patch (Data Source)
Looks up a patch of an application or a compose service that already exists in Dokploy:
data "dokploy_patch" "config" {
application_id = data.dokploy_application.web.id
file_path = "config/app.yaml"
}Example Usage
data "dokploy_patch" "example" {
id = "your-patch-id"
}
# Look a patch up by the service and the file path.
data "dokploy_patch" "config" {
application_id = data.dokploy_application.web.id
file_path = "config/app.yaml"
}Schema
Optional
application_id(String) Id of the application that owns the patch. Set it, orcompose_id, withfile_path.compose_id(String) Id of the compose service that owns the patch. Set it, orapplication_id, withfile_path.file_path(String) Path of the file, relative to the repository root.id(String) Patch id. Set it for a lookup by id, or set a parent andfile_path.
Read-Only
content(String) Content of the file, as Dokploy stores it.enabled(Boolean) Whether Dokploy applies the patch at the next build.type(String) What the patch does to the file:create,update, ordelete.