Skip to content
HALOWERK

Codewerk

compose validate

Parses the YAML (anchors and merge keys allowed) and validates it with the official compose-spec JSON Schema (draft 2020-12, compose-spec/compose-spec commit 3a4a699 of 2026-10-23, Apache-2.0, stored in daten/E07) using Ajv; errors are reported with JSON pointer paths. Service rules: memory and CPU limits (deploy.resources.limits, mem_limit, cpus), privileged, network_mode/pid/ipc/userns_mode host, docker.sock mounts, dangerous cap_add, unconfined security_opt, images without tag or :latest,.

POST https://code.halowerk.com/v1/compose-validate

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
composestringYesContent of compose.yaml / docker-compose.yml.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "compose"
  ],
  "properties": {
    "compose": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000000,
      "description": "Content of compose.yaml / docker-compose.yml."
    }
  }
}

Open original schema

Published input example

{
  "compose": "services:\n  web:\n    image: nginx:1.27\n    ports:\n      - \"8080:80\"\n    deploy:\n      resources:\n        limits:\n          cpus: \"0.5\"\n          memory: 256M\n"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’