Instale plug-ins em elasticsearch com docker-compose

(1) docker-compose.ymlarquivo

version: '2'
services
:
es_v2
:
image
: elasticsearch:2
ports
:
- "9202:9200"
volumes
:
- .:/apps
entrypoint
: /apps/docker-entrypoint-es-plugins.sh

(2) docker-entrypoint-es-plugins.sharquivo:

#!/bin/bash
# setting up prerequisites

plugin install
delete-by-query

exec /docker-entrypoint.sh elasticsearch

(3) Executar: docker-compose up