Worked example · Compose Diff
What this example shows
A small example changes a web service, removes a cache service and adds a worker. The comparison uses the same local YAML parser as the editable workbench.
6 structural changes across 3 services, with environment and label matching enabled.
Illustrative configuration files from the bundled example collection. No containers are started and image versions are example strings, not release recommendations.
| Path or comparison | Change | Area |
|---|
| /services/cache | removed | services |
| /services/web/environment/LOG_LEVEL | changed | environment |
| /services/web/image | changed | image / build |
| /services/web/ports/0 | changed | ports |
| /services/web/read_only | added | permissions / secrets |
| /services/worker | added | services |
The table below publishes only structural paths and change types. The example inputs contain the invented values, while result and export values remain hidden by default.
This comparison does not load .env files, interpolate variables or merge external overrides. Compare reviewed docker compose config outputs when you need resolved configurations.
Try it with your own input
- Read the changes, then replace the Before and After YAML with your own configurations.
- Choose Compare configurations after editing.
- Filter by service or area. Values remain hidden until you choose to reveal them.
Edit the prefilled example · Open the main tool
Sources and related tools
Another worked example