Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 601 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 601 Bytes

Elasticsearch Dockerfile

This repository contains a ElasticSearch instance that can be used in a Consul and Registrator environment.

Usage

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