Skip to content

Instantly share code, notes, and snippets.

@yoanisgil
Last active October 1, 2018 12:10
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save yoanisgil/047256dbe21622c1a10a to your computer and use it in GitHub Desktop.
Save yoanisgil/047256dbe21622c1a10a to your computer and use it in GitHub Desktop.
Elastic Search - Docker Compose
master:
image: elasticsearch:2
ports:
- "9200:9200"
restart: always
container_name: es_master
es-node:
image: elasticsearch:2
command: elasticsearch --discovery.zen.ping.unicast.hosts=es_master
restart: always
environment:
- "affinity:container!=*master*"
- "affinity:container!=*es-node*"
kibana:
image: kibana:4
environment:
- ELASTICSEARCH_URL=http://ES_MASTER_IP:9200
ports:
- "5601:5601/tcp"
container_name: kibana
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment