compose_wait
Block until named Docker Compose service containers stop, then return their exit codes for batch processing.
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 |