Thanks for sharing your solution.
For tests, here is what I'm doing. It's more manual than your solution though:
---
version: '3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:$ELASTIC_VERSION
environment:
- bootstrap.memory_lock=true
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata:/usr/share/elasticsearch/data
- esplugins:/usr/share/elasticsearch/plugins
ports:
- 9200:9200
volumes:
esdata:
esplugins:
Then
docker exec -i -t 6x_elasticsearch_1 /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment
And then I restart docker-compose
.
Very manual as I said