Docker compose configuration file writing precautions and common parameters

YAML data structures are represented by indentation, consecutive items are represented by minus signs, key-value pairs are separated by colons, arrays are enclosed in square brackets, and hashes are
enclosed .
Notes on YAML file format:

  1. Tab key indentation is not supported, space indentation is required
  2. Usually indent 2 spaces at the beginning
  3. Indent 1 space after characters, such as colons, commas, bars
  4. Annotate with a pound sign
  5. If it contains special characters, enclose it in single quotes
  6. Boolean values ​​(true, false, yes, no, on, off) must be enclosed in quotes so that the parser will interpret them as
    strings

Docker compose configuration file writing precautions and common parameters

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326137086&siteId=291194637