title: How to install logstash plugin with docker-compose?
body: <p>I try to install logstash with a <code>docker-compose</code> but docker <code>exited with code 0</code> just after <code>Installation successful</code> when I try to install a logstash plugin.</p>
  
  <p>The part of docker-compose file for logstash is:</p>
  
  <pre><code>  logstash:
      image: docker.elastic.co/logstash/logstash-oss:7.0.1
      ports: ['9600:9600']
      command: bin/logstash-plugin install logstash-filter-metricize
      volumes:
        - ./logstash/pipeline/:/usr/share/logstash/pipeline/
  </code></pre>
  
  <p>And the logs are:</p>
  
  <pre><code>logstash_1       |Validating logstash-filter-metricize
  logstash_1       |Installing logstash-filter-metricize
  logstash_1       |Installation successful
  logstash_1 exited with code 0
  </code></pre>
  
  <p>If I try without install the plugin, my docker-compose works fine. I don't understand what I'm doing wrong when I install the plugin.</p>