浏览代码

Docs: fix env_file example

Thanks-to: @aanand
Signed-off-by: Laurent Arnoud <[email protected]>
Laurent Arnoud 10 年之前
父节点
当前提交
e3cff5d17d
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      docs/yml.md

+ 5 - 1
docs/yml.md

@@ -172,8 +172,12 @@ env_file:
   - /opt/secrets.env
   - /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
 ### extends