-
-
Save j-bennet/1580568c33922031d04d0f532fd037a2 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