Illustration of a docker-compose.yml file being checked against Compose structure rules

Docker Compose YAML Validator

Paste a docker-compose.yml to check its structure: required services key, each service having image or build, and plausible types for ports/environment/volumes/depends_on.

A practical structural check, not full validation against the Compose Specification's complete schema — it catches the common mistakes, not every possible one.


💻 Show API usage example (cURL)
curl -sS "https://devops.majbase.com/docker-compose-validator/api" --data-urlencode 'yaml=services:
  web:
    image: nginx:latest'

Returns {"valid", "errors", "warnings", "services"}.