Last active
November 7, 2016 12:13
-
-
Save tolleiv/e4277c9bfa8b59e1026ea7cc44b58ec4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker network create --driver bridge es_nw | |
docker run -d --name es_master --network=es_nw -p 9200:9200 tolleiv/misc:elaticsearch_w_hq | |
docker run -d --name es_node1 --network=es_nw tolleiv/misc:elaticsearch_w_hq elasticsearch --discovery.zen.ping.unicast.hosts=es_master | |
docker run -d --name es_node2 --network=es_nw tolleiv/misc:elaticsearch_w_hq elasticsearch --discovery.zen.ping.unicast.hosts=es_master | |
docker run --rm -e ES_URL=es_master:9200 --network=es_nw tolleiv/misc:es_sampledata |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment