compose_action
Execute Docker Compose lifecycle actions (up, down, pull, stop) on a specified project file. Optionally operate on a subset of services.
Instructions
Run a docker compose lifecycle action (up, down, pull, stop) against a compose project file. Uses the local Docker socket.
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": {
"projectFile": "<projectFile>",
"action": "<action>"
},
"name": "compose_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Lifecycle action to run. | |
| services | No | Optional subset of services to target. Omit for all. | |
| downVolumes | No | For "down": also remove named volumes. | |
| projectFile | Yes | Path to the docker-compose.yml file. | |
| projectName | No | Optional project name (-p flag). |