Docker Compose Validator
Paste your docker-compose.yml, run instant checks for syntax, restart policies, resource limits, and env_file references. Download a prettified copy that is safe for CI.
Used 3,300 times
Paste your docker-compose.yml or drop the file. Validation runs instantly.
Version
3.9
Services
2
Volumes
1
Networks
1
env_files
none
Errors & Syntax Issues
Syntax looks good.
Warnings
- Service "worker" has no restart policy.
- Service "api" is missing resource limits (deploy.resources.limits).
Latest DevOps articles
Cron Daylight Savings Fixer – Prevent Duplicate and Missing Job Runs
Learn why cron jobs can run late, twice or not at all around DST changes, how cronie and EventBridge Scheduler handle it, and how UTC schedules avoid it.
Migrating Cron Schedules to Databricks (Quartz) and EventBridge Without Surprises
A field-by-field checklist for moving Unix crontab schedules to Databricks (Quartz) and AWS EventBridge: seconds, ?, Sunday numbering, the OR rule, L/W/#, years, rate() and timezones.
GitHub Actions Linter — Catch Broken Workflows Before They Break CI
Paste any workflow YAML and get instant feedback on triggers, jobs, runs-on labels, unsafe secrets usage, and deprecated actions before shipping to main.
Why validate docker-compose?
Docker Compose is the glue between services in local development and staging clusters. A single extra space or a missing colon can keep the stack from starting. The validator mirrors the checks you would normally run with docker compose config and adds best-practice checks for restart policies, env_file usage, and resource limits.
Recommended workflow
- Paste or upload your compose file and review the automatic warnings.
- Prettify the YAML to enforce two-space indentation and strip trailing whitespace.
- Export the cleaned file and commit it or run
docker compose config --dry-runlocally.
Use the paired guide Docker Compose Validator – Fix YAML before deploy for command-line troubleshooting tips.