title: How to set an environment variable for docker-compose in Intellij?
body: <p>I cannot seem to find a way to set an environment variable that can be used in docker-compose in Intellij (Ultimate 2017.3 macos).
  If I add a .env file to the folder in which docker-compose.yml resides, then it is not picked up by Intellij. Also if I do 'export MYVARIABLE=foo' in a terminal it is not picked up by the Intellij docker plugin.
  Docker and docker-compose work fine both within or outside Intellij, the only thing is this environment variable substitution does not work in Intellij.</p>
  
  <p>It keeps on saying:
  The MYVARIABLE variable is not set. Defaulting to a blank string. </p>
  
  <p>In my docker-compose.yml I have a reference to ${MYVARIABLE} and outside Intellij it works fine.</p>