compose_stop
Stop services in a Docker Compose project without removing containers, networks, or volumes, allowing them to be resumed later.
Instructions
Stop services in a compose project without removing their containers.
Unlike compose_down, containers/networks/volumes survive — use compose_start to bring them back.
args:
project_dir - Dir with the compose file (default: server cwd)
files - Explicit compose file paths (repeatable, -f)
project_name - Compose project name override
services - Specific services to stop (default: all)
stop_timeout_seconds - Grace period before SIGKILL (passed as --timeout)
timeout_seconds - Subprocess timeout (default 300s)
returns: dict - {"returncode": int, "stdout": str, "stderr": str, "truncated": bool}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| services | No | ||
| project_dir | No | ||
| project_name | No | ||
| timeout_seconds | No | ||
| stop_timeout_seconds | No |