mirror of https://github.com/docker/docs.git
Add inline comments section (#14507)
* Add inline comments section Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com> * Update compose/compose-file/compose-file-v3.md Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
This commit is contained in:
parent
026949047e
commit
8b6e052eee
|
@ -1107,6 +1107,16 @@ also ignored.
|
|||
RACK_ENV=development
|
||||
```
|
||||
|
||||
Compose also recognizes inline comments, like in:
|
||||
```
|
||||
MY_VAR = value # this is a comment
|
||||
```
|
||||
|
||||
To avoid interpreting "#" as an inline comment, use the quotation marks:
|
||||
```
|
||||
MY_VAR = "All the # inside are taken as part of the value"
|
||||
```
|
||||
|
||||
> **Note**
|
||||
>
|
||||
> If your service specifies a [build](#build) option, variables defined in
|
||||
|
|
Loading…
Reference in New Issue