Docker Compose Validator
Used 3,300 times
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.
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 how to fix cron jobs that fire twice or not at all during DST changes. Build UTC-based expressions or simulate schedules through DST boundaries to catch gaps before they happen.
Cron Expression Examples – Complete Guide for Developers
A practical reference for cron expressions with common examples, field breakdown, and mistakes to avoid — for Unix cron, GitHub Actions, Kubernetes CronJobs, and AWS EventBridge.
Cron Expression UTC Builder – Coordinate Global Job Schedules
Learn how to build cron expressions in UTC so scheduled jobs run at consistent absolute times across multi-region clusters without drifting due to daylight saving changes.
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.