Download YAML Sample Files

File File type File size Rows/Records Mime type Download example file
YAML Sample - Simple Config YAML 311 B N/A text/yaml Download example file
YAML Sample - Nested Config YAML 633 B N/A text/yaml Download example file
YAML Sample - Docker Compose YAML 2 KB N/A text/yaml Download example file
YAML Sample - GitHub Actions YAML 3 KB N/A text/yaml Download example file
YAML Sample - OpenAPI Spec YAML 5 KB N/A text/yaml Download example file

About YAML files

YAML files use indentation (spaces, not tabs) to define structure. The format supports scalars (strings, numbers, booleans), sequences (arrays), and mappings (key-value pairs). Comments start with a hash character, which is a nice advantage over JSON.

YAML has become the default for DevOps configuration. Docker Compose files, CI/CD pipelines, Kubernetes manifests, and Ansible playbooks all use YAML. The format is also used by static site generators like Jekyll and Hugo.

Our YAML samples include flat configs, nested structures, and realistic DevOps files. If you prefer a format without indentation sensitivity, check our JSON samples.