Public Repository

Last pushed: a year ago
Short Description
ElasticSearch Cluster
Full Description

$ tee -a ~/.bash_profile <<-'EOF'
export ELASTICSEARCH_IMAGE=1984tuanna/elasticsearch-cluster
EOF
(Log out and log back in worker-user)
$ sudo mkdir -p /usr/share/elasticsearch
$ sudo chown -R app-user:app-user /usr/share/elasticsearch
$ mkdir -p /usr/share/elasticsearch/dockerdata1
$ mkdir -p /usr/share/elasticsearch/dockerdata2

$ docker run -d -p 9600:9200 \
--restart=on-failure:5 \
--ulimit nofile=262144:262144 \
-e "discovery.zen.minimum_master_nodes=2" \
-v /usr/share/elasticsearch/data1:/usr/share/elasticsearch/dockerdata1 \
--name eslog1 $ELASTICSEARCH_IMAGE

$ docker run -d -p 9601:9200 \
--restart=on-failure:5 \
--ulimit nofile=262144:262144 \
-e "discovery.zen.minimum_master_nodes=2" \
-e "discovery.zen.ping.unicast.hosts=eslog1" \
-v /usr/share/elasticsearch/data2:/usr/share/elasticsearch/dockerdata2 \
--name eslog2 --link eslog1 $ELASTICSEARCH_IMAGE

Docker Pull Command
Owner
1984tuanna