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.
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). |