# dokploy_patch (Data Source)

Looks up a patch of an application or a compose service that already exists in Dokploy:

```terraform
data "dokploy_patch" "config" {
  application_id = data.dokploy_application.web.id
  file_path      = "config/app.yaml"
}
```

## Example Usage

```terraform
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 generated by tfplugindocs -->
## Schema

### Optional

- `application_id` (String) Id of the application that owns the patch. Set it, or `compose_id`, with `file_path`.
- `compose_id` (String) Id of the compose service that owns the patch. Set it, or `application_id`, with `file_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 and `file_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`, or `delete`.