Syntaxe
nom: mon-app
actif: true
ports:
- 80
- 443
base:
hote: localhost
port: 5432
description: |
Texte sur
plusieurs lignes
# commentaire
Pièges
- Tabulations interdites ; indentation cohérente (2 espaces).
- Espace obligatoire après
:et-. - Valeurs à protéger :
"01000","12:30","no","on","1.10"(sinon nombre 1.1).
Valider : extension YAML de VS Code, python -c "import yaml,sys; yaml.safe_load(open(sys.argv[1]))" fichier.yaml. Exemples : Docker Compose, Netplan, GitHub Actions.