docker compose config --format json

Category: Docker

docker compose config --format json

Render the merged compose config as JSON

Prints the fully resolved compose model, after variable interpolation and file merging, as JSON. Useful for feeding other tools or debugging what compose actually runs. yaml is the default format; json is friendlier for scripting.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.