CoolCodeTHE CONFIGURATION WORKBENCH

Compose Diff

Docker Compose environment list versus map example

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

Worked example · Compose Diff

What this example shows

The same TZ and PORT values can be written using list or mapping syntax. This example shows the result of matching those environment entries by key.

0 structural changes across 1 service, with environment and label matching enabled.

Two hand-written configuration examples. The comparison is structural and does not execute Compose.

Path or comparisonChangeArea
Environment list and mapNo structural difference after matching by keyenvironment

Mapping order and comments are ignored. Other lists, including ports and volumes, remain ordered.

An inherited environment variable and an explicitly empty value have different meanings and are not treated as interchangeable.

Try it with your own input

  1. Review the two environment forms already filled in.
  2. Compare with Match environment and label lists with maps enabled.
  3. Turn that option off and compare again to inspect their different parsed structures.

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