Skip to content

Instantly share code, notes, and snippets.

@tolleiv
Last active November 7, 2016 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tolleiv/e4277c9bfa8b59e1026ea7cc44b58ec4 to your computer and use it in GitHub Desktop.
Save tolleiv/e4277c9bfa8b59e1026ea7cc44b58ec4 to your computer and use it in GitHub Desktop.
#!/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