Last active
October 1, 2018 12:10
-
-
Save yoanisgil/047256dbe21622c1a10a to your computer and use it in GitHub Desktop.
Elastic Search - Docker Compose
This file contains 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
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