Skip to content

Instantly share code, notes, and snippets.

@mitallast
Last active November 14, 2016 12:38
Show Gist options
  • Save mitallast/86f47a92cdeeda3bf07b8c220fe79cdf to your computer and use it in GitHub Desktop.
Save mitallast/86f47a92cdeeda3bf07b8c220fe79cdf to your computer and use it in GitHub Desktop.
elastic cluster via docker compose
version: '2'
services:
sense:
image: areneleau/sense
ports:
- "127.0.0.1:5601:5601"
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
elastic-master:
image: elasticsearch:2.4.1
command: elasticsearch --node.data=false --es.node.master=true
ports:
- "127.0.0.1:9200:9200"
- "127.0.0.1:9300:9300"
elastic-data:
image: elasticsearch:2.4.1
command: elasticsearch --node.data=true --node.master=false --discovery.zen.ping.unicast.hosts=elastic-master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment