compose_wait
Block until specified Docker Compose services stop, then output their exit codes. Ideal for batch or one-shot services.
Instructions
Block until the named service containers stop, then return their exit codes.
For one-shot / batch services. A long-running service that never exits blocks until
timeout_seconds, then the subprocess is killed (TimeoutExpired) — bound it sensibly.
Exit codes are on stdout.
args:
services - One or more services to wait on. At least one is required.
project_dir - Dir with the compose file (default: server cwd)
files - Explicit compose file paths (repeatable, -f)
project_name - Compose project name override
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 | Yes | ||
| project_dir | No | ||
| project_name | No | ||
| timeout_seconds | No |