According to this comment, multi-line variables are supported with docker compose:
environment:
KEY: |-
line1
line2
However, when I execute echo $KEYin the container, it replaced the new line with spaces:
line1 line2
Am I missing something? The version for dockers is 1.12.1.
source
share