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:
Ulysses Souza 2022-04-06 17:10:06 +02:00 committed by GitHub
parent 026949047e
commit 8b6e052eee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -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