How to install ElasticSeach plugins using docker compose
<p>I have a docker-compose.yml file with an elastic search image:</p>

<pre><code>elasticsearch:
  image: elasticsearch
  ports:
    - "9200:9200"
  container_name: custom_elasticsearch_1
</code></pre>

<p>If I want to install additional plugins like the HQ interface or the attachment-mapper I have to do a manual installation with the following commands:</p>

<pre><code>$ docker exec custom_elasticsearch_1 plugin install royrusso/elasticsearch-HQ
$ docker exec custom_elasticsearch_1 plugin install mapper-attachments
</code></pre>

<p>Is there a way to install them automatically when I run the <code>docker-compose up</code> command?</p>