The function builds YAML manually with string concatenation, which is brittle and hard to extend (e.g., adding volumes, networks).
The function builds YAML manually with string concatenation, which is brittle and hard to extend (e.g., adding volumes, networks).