compose_up
Start a Docker Compose project in detached mode, with options for building images, pulling, and waiting for healthy services.
Instructions
Bring up a Docker Compose project, detached.
Always runs detached (-d) so it can't block the server. Use compose_ps to confirm
services are running, or wait=True to block until they're healthy.
args:
project_dir - Dir with the compose file (default: server cwd; paths verbatim, no shell expansion)
files - Explicit compose file paths (repeatable, -f)
project_name - Compose project name override
profiles - Profiles to activate
services - Specific services to bring up (default: all)
build - Build images before starting
pull - Pull strategy: "always", "missing", "never", or "policy" (compose default)
remove_orphans - Remove containers for services not in the compose file
wait - Block until services are healthy (adds --wait)
timeout_seconds - Subprocess timeout (default 600s)
returns: dict - {"returncode": int, "stdout": str, "stderr": str, "truncated": bool}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pull | No | ||
| wait | No | ||
| build | No | ||
| files | No | ||
| profiles | No | ||
| services | No | ||
| project_dir | No | ||
| project_name | No | ||
| remove_orphans | No | ||
| timeout_seconds | No |