compose_config
Renders the final Docker Compose configuration after merging files, applying profiles, and substituting variables. Supports YAML and JSON output.
Instructions
Render the canonical compose configuration after merges, profiles, and variable substitution.
args:
project_dir - Dir with the compose file (default: server cwd)
files - Explicit compose file paths (repeatable, -f)
project_name - Compose project name override
profiles - Profiles to activate before rendering
services_only - List service names only (--services)
format - "yaml" (default) or "json"
returns: dict - {"config": str|dict|None, "raw": };
config is a parsed dict when format="json" and parsing succeeds,
otherwise the rendered text from stdout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| format | No | yaml | |
| profiles | No | ||
| project_dir | No | ||
| project_name | No | ||
| services_only | No |