CoolCodeTHE CONFIGURATION WORKBENCH

Compose Diff

Docker Compose diff example: images, ports and services

Same stack. A different setup.
See the changes before you run them.

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 comparisonChangeArea
/services/cacheremovedservices
/services/web/environment/LOG_LEVELchangedenvironment
/services/web/imagechangedimage / build
/services/web/ports/0changedports
/services/web/read_onlyaddedpermissions / secrets
/services/workeraddedservices

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

  1. Read the changes, then replace the Before and After YAML with your own configurations.
  2. Choose Compare configurations after editing.
  3. 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

Local files. Local comparison.YAML & JSON · no upload · no Docker connection
Paste YAML or JSON, or choose a local file.
Compare source files or docker compose config outputs.

Opening the workbench…

Know what the record means

Structure first.
Context matters.

What gets compared

Mapping order, whitespace and comments do not create differences. YAML anchors and merge keys are resolved within each document. Environment and label lists can be compared by key against their mapping form. Other arrays retain their order, including ports and volumes.

Short and long port/mount syntaxes are not treated as equivalent. Paths use JSON Pointer notation; array positions start at zero. Added or removed mappings appear as one change with their full contents available.

What stays outside

No containers are contacted or started. Variables are not interpolated, referenced files are not opened, and separate override files are not merged. To compare effective configurations, run docker compose config yourself for each setup and compare those outputs.

This is not a Compose schema validator or a prediction of deployment behaviour. YAML 1.2 core values are supported; custom tags such as !reset and !override are rejected.

Your configuration stays here

Pasted documents and local files remain in this browser tab. There is no automatic storage. Values are hidden by default in results and exported reports; revealing them affects both. Names and paths remain visible. Downloaded full-value reports and generated YAML may contain credentials.

Parsing runs in a worker with size and time limits. A failed comparison leaves the earlier result visible and labelled; exports require a current successful comparison.

Docker Compose referenceCompose configYAML parser