This repository contains a ElasticSearch instance that can be used in a Consul and Registrator environment.
docker run --rm \
--name elasticsearch-<i> \
--env SERVICE_NAME=<cluster-name> \
--env SERVICE_9200_TAGS=http \
--env SERVICE_9300_ID=<cluster-name>-<i> \
--env SERVICE_9300_TAGS=es-transport \
--env TOTAL_NR_OF_SERVERS=<number-of-instances-in-cluster> \
-P \
--dns <ip-address-consul-listening-on-port-53> \
--dns-search=service.consul \
-v <data-dir>:/data \
cargonauts/consul-elasticsearch