title: Intentionally removing volumes in override docker-compose files
body: <p>For production deployment, I don't want shared volumes. So, I have an override file but this does not remove the volumes.</p>
  
  <p>Is there a way to remove shared volumes in an override file? I'd like to avoid having an override just for development, because that seems clunky to use.</p>
  
  <p>This is my <code>docker-compose.yml</code>:</p>
  
  <pre><code>version: '2'
  # other services defined here
  services:
    web:
      build:
        context: .
      # other configuration
      volumes:
        - .:${APP_DIR}
  </code></pre>
  
  <p>And my <code>docker-compose.prod.yml</code>:</p>
  
  <pre><code>version: '2'
  services:
    web:
      volumes: []
      restart: always
  </code></pre>