Skip to content

Instantly share code, notes, and snippets.

@j-bennet
Forked from yoanisgil/docker-compose.yml
Created April 10, 2017 22:50
Show Gist options
  • Save j-bennet/1580568c33922031d04d0f532fd037a2 to your computer and use it in GitHub Desktop.
Save j-bennet/1580568c33922031d04d0f532fd037a2 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