CoolCodeTHE CONFIGURATION WORKBENCH

Compose Diff

Why a Docker Compose app can start with an empty data folder

Compare two Compose bind mounts. See how changing a host folder can hide existing files from the application and what to verify before writing new data.

Worked example · Compose Diff

What this example shows

The app still reads /app/data, but its host directory changes from ./data to ./new-data. If the new folder is empty, the app can look freshly installed. The change alone tells you nothing about whether the old files still exist.

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

Illustrative bind mounts. Both paths are relative to the Compose project. No files are inspected.

SettingBeforeAfterWhat to check
app · Storage mount · entry 1./data:/app/data./new-data:/app/dataCheck the source, destination and write mode. A different source can make existing data appear missing. Verify the backup and mount before allowing writes.

The image and container path stay the same. Also check the project directory when moving a stack between hosts.

Try it with your own input

  1. Compare the volume entry below. The left side of the mount is the host path.
  2. Verify the resolved source directory and backup before allowing writes.
  3. Change ./new-data back to ./data and compare again. The difference disappears.

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

Replace both samples with your current and proposed Compose files, then choose Compare configurations. Each change includes a check you can make before deployment. Nothing is uploaded or run.

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.

Port publishingDocker Compose referenceCompose configYAML parser