compose_config
Render the canonical Docker Compose configuration after merging files, activating profiles, and substituting variables. Supports YAML or JSON output and can list only service names.
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 |