Переглянути джерело

Merge pull request #1166 from spk/fix_example_env_file

Docs: fix env_file example
Aanand Prasad 10 роки тому
батько
коміт
4f95e81c6d
1 змінених файлів з 5 додано та 1 видалено
  1. 5 1
      docs/yml.md

+ 5 - 1
docs/yml.md

@@ -173,8 +173,12 @@ env_file:
   - /opt/secrets.env
 ```
 
+Compose expects each line in an env file to be in `VAR=VAL` format. Lines
+beginning with `#` (i.e. comments) are ignored, as are blank lines.
+
 ```
-RACK_ENV: development
+# Set Rails/Rack environment
+RACK_ENV=development
 ```
 
 ### extends