This is an image based on https://github.com/docker-library/elasticsearch. It includes some custom config, and the following plugins:
Image available on Docker Hub: https://registry.hub.docker.com/u/elevate/elasticsearch/
Assuming that all participating EC2 instances are tagged with environment:develop
, here's a sample command to run on EC2:
docker run -d -p 0.0.0.0:9200:9200 -p 0.0.0.0:9300:9300 \
--volumes-from $(docker create -v /usr/share/elasticsearch/data busybox) \
elevate/elasticsearch \
--cluster.name=elevate-logs-develop \
--network.publish_host=_ec2_ \
--transport.publish_port=9300
--discovery.type=ec2 \
--cloud.aws.region=eu-west \
--discovery.ec2.tag.environment=develop \
--metrics.riemann.host=riemann-server