Skip to content
BEAD

Docker Compose Validator

Lint a docker-compose.yml — parse the YAML, walk the structure, and flag common mistakes.

✓ No issues found.

What this checks

  • Valid YAML (via js-yaml).
  • Top-level keys against the Compose spec (services / volumes / networks / configs / secrets / version / name / include).
  • Each service has at least image or build.
  • Restart policies are one of no | always | on-failure | unless-stopped.
  • Port mappings parse cleanly and don't clash across services on the host side.
  • depends_on targets exist.

You might also like