docker_compose
Manage Docker Compose services: start, stop, build, view logs, and execute commands for multi-container applications using compose files.
Instructions
Manage Docker Compose services
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": "docker_compose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Docker Compose action to perform | |
| service | No | Specific service to target | |
| file | No | Docker Compose file path (default: docker-compose.yml) | |
| detach | No | Run in background (for up action) | |
| build | No | Build images before starting (for up action) | |
| force_recreate | No | Force recreate containers | |
| remove_orphans | No | Remove containers for services not defined in compose file | |
| follow | No | Follow log output (for logs action) | |
| tail | No | Number of lines to show from end of logs | |
| command | No | Command to execute (for exec action) | |
| project_name | No | Project name for compose stack |