title: Variable doesn't expand while passing as a parameter to docker-compose command inside heredoc block
body: <p>I was trying to run some docker-compose command over ssh using bash script like below. I mean I have an executable shell script deploy.sh which contains below code snippets </p>
  
  <pre><code>ssh -tt -o StrictHostKeyChecking=no root@142.32.45.2 &lt;&lt; EOF
  DIR=test
  echo \${DIR}
  docker-compose --project-name \${DIR} up -d
  EOF
  </code></pre>
  
  <p>But the DIR variable doesn't get expanded while passing as a parameter to docker-compose. It executes like below. While <code>echo \${DIR}</code> gives correct output i.e <strong>test</strong>. </p>
  
  <pre><code>docker-compose --project-name ${DIR} up -d
  </code></pre>