Docker Compose Validator
Check docker-compose.yml for errors, bad ports and risky settings.
docker-compose.yml
Paste your Compose file
Validation results
Structure, references and security checks
- version The top-level `version` key is obsolete in the Compose Specification and is ignored by modern Docker Compose.
- services.web Image `nginx:latest` is unpinned — pin a specific tag or digest for reproducible deploys.
- services.web No `restart` policy set — consider `unless-stopped` for long-running services.
- services.db Image `postgres` is unpinned — pin a specific tag or digest for reproducible deploys.
- services.db No `restart` policy set — consider `unless-stopped` for long-running services.
- services.db.environment.POSTGRES_PASSWORD Secret-looking value is hardcoded — move it to an env file or a secret.
About the Docker Compose Validator
Paste a Compose file to validate its structure: a services block, image or build on every service, unpinned or :latest tags, duplicate and malformed host port mappings, undefined named volumes and networks, unknown depends_on targets, privileged containers, host networking and missing restart policies.
Examples
Duplicate port
ports:
- "8080:80"
- "8080:81"Output
Error: host port 8080 mapped twiceKeyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
.htaccess Redirect Generator
Dev Utilities
Generate Apache .htaccess redirect and rewrite rules.
Bash Alias Generator
Dev Utilities
Create shell aliases for Bash, Zsh or Fish with correct quoting.
Chmod Calculator
Dev Utilities
Unix permission calculator: checkboxes, octal, and symbolic.
Cron Expression Builder
Dev Utilities
Build cron expressions visually with a human-readable description.
Crontab to Human Readable
Dev Utilities
Translate whole crontab files into plain English, line by line.
Dockerfile Linter
Dev Utilities
Lint a Dockerfile for common best-practice issues.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-19 · Runs entirely in your browser