Docker compose, manage environments
<p>I have the following <code>docker-compose.yml</code> file to work locally:</p>

<pre><code>mongodb:
  image: mongo
  command: "--smallfiles --logpath=/dev/null"
web:
  build: .
  command: npm run dev
  volumes:
    - .:/myapp
  ports:
    - "3001:3000"
  links:
    - mongodb
  environment:
    PORT: 3000
    NODE_ENV: 'development'
seed:
 build: ./seed
 links:
   - mongodb
</code></pre>

<p>When I deploy to my server, I need to change two things in the <code>docker-compose.yml</code> file:</p>

<pre><code>web:
  command: npm start
  environment:
    NODE_ENV: 'production'
</code></pre>

<p>I guess editing the file after each deploy ain't the most comfortable way to do that. Any suggestion on how to cleanly manage environments in the <code>docker-compose.yml</code> file?</p>