title: How to pass an ENV variable from Docker-compose to a Spring Cloud Data Flow Task?
body: <p>I have Spring Cloud Data Flow that starts from a docker-compose.</p>
  <p>For example, in docker-compose I have:</p>
  <pre><code>dataflow-server:
      image: springcloud/spring-cloud-dataflow-server:${DATAFLOW_VERSION:-2.8.1}
      container_name: dataflow-server
      ports:
        - &quot;${DATAFLOW_EXTERNAL_PORT}:9393&quot;
      environment:
        ...
        - MY_ENV=foo
      depends_on:
        - rabbitmq
        - skipper-server
      restart: always
      volumes:
        - ${HOST_MOUNT_PATH:-.}:${DOCKER_MOUNT_PATH:-/home/cnb/scdf}
  </code></pre>
  <p>But if I register the task with dataflow shell:</p>
  <pre><code>task create dummy-task --definition 'dummy --MY_ENV_FOR_TASK=$MY_ENV' --description 'dummy task for test'
  </code></pre>
  <p>I can't see <code>MY_ENV_FOR_TASK</code> resolved as <code>foo</code> when I launch the task.</p>
  <p>How can I pass an ENV variable, settled in docker-compose <code>environment</code> section, to Spring Cloud Data Flow and, successively, to a Task?</p>