Install plugins on elasticsearch with docker-compose
(1) docker-compose.yml
file
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.sh
file:
#!/bin/bash
# setting up prerequisites
plugin install delete-by-query
exec /docker-entrypoint.sh elasticsearch
(3) Run: docker-compose up
Written by Pulkit Singhal
Related protips
1 Response
Thanks, solution works well because you don't have to create a separate Dockerfile. I'm using ES 6.5.3 inside of Docker. Here is how I had to set my docker-entrypoint-es-plugins.sh:
!/bin/bash
setting up prerequisites
bin/elasticsearch-plugin install repository-s3
exec /usr/local/bin/docker-entrypoint.sh elasticsearch
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Elasticsearch
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#