title: docker-compose—bind mount volume only in development
body: <p>I have a <code>docker-compose.yml</code> like that:</p>
  
  <pre><code>version: '2'
  services:
    backend:
      build:
        context: .
      volumes:
        - .:/home/ll/stuff
      ports:
        - '8000:80'
  </code></pre>
  
  <p>That always mounts the volume, what is nice for development, but not for production. Is there a way to »tell« <code>docker-compose</code> to mount that volume only in development, or in other words, if <code>APP_ENV</code> is empty or <code>==development</code>?</p>
  
  <p>Do I need to create another compose file for that? If so, can I use the configuration from the production file, without repeating stuff that does not change? </p>