Variable substitution is not supported in env_file.
Your options are:
use variables in the environment: section (although you wont be able to do your example because setting a value in environment only sets it for the container environment, and substitution happens on the host).
use host variables by specifying an environment variable without a value (ex: LOCALPATH=), which may be in either the env_file or environment section.
Asked in February 2016Viewed 2,180 timesVoted 6Answered 1 times