dokploy_mounts
Manage service mounts: create, update, remove, and list volumes, bind mounts, or files. After changing a mount, redeploy the parent service to apply it.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "dokploy_mounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | bind | volume | file | |
| action | Yes | ||
| content | No | File contents for type=file | |
| mongoId | No | ||
| mountId | No | ||
| mysqlId | No | ||
| redisId | No | ||
| filePath | No | Required for type=file | |
| hostPath | No | Required for type=bind | |
| libsqlId | No | ||
| composeId | No | ||
| mariadbId | No | ||
| mountPath | No | Path inside the container | |
| serviceId | No | ID of the service the mount attaches to | |
| postgresId | No | ||
| volumeName | No | Required for type=volume | |
| serviceType | No | ||
| applicationId | No |