dokploy_mounts
Manage volumes, bind mounts, and files attached to services. Create, update, remove, or list mounts by service or application. Changes require redeploy.
Instructions
Manage mounts (volumes, bind mounts, files) attached to services. Mount changes require a redeploy of the parent service to take effect. create: type+mountPath+serviceId+serviceType (+volumeName for volume, +hostPath for bind, +filePath+content for file). update: mountId (+any field). remove: mountId. get: mountId. listByServiceId: serviceType+serviceId. allNamedByApplicationId: applicationId (named volumes only). serviceType: application|postgres|mysql|mariadb|mongo|redis|compose|libsql.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| mountId | No | ||
| type | No | bind | volume | file | |
| mountPath | No | Path inside the container | |
| hostPath | No | Required for type=bind | |
| volumeName | No | Required for type=volume | |
| filePath | No | Required for type=file | |
| content | No | File contents for type=file | |
| serviceType | No | ||
| serviceId | No | ID of the service the mount attaches to | |
| applicationId | No | ||
| composeId | No | ||
| libsqlId | No | ||
| mariadbId | No | ||
| mongoId | No | ||
| mysqlId | No | ||
| postgresId | No | ||
| redisId | No |