Created
March 7, 2016 06:25
-
-
Save jrglee/c5322eb0998631f4366c to your computer and use it in GitHub Desktop.
Docker - elasticsearch cluster
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
version: '2' | |
services: | |
master: | |
image: elasticsearch:2.2 | |
container_name: es-master | |
command: elasticsearch -Des.node.master=true -Des.node.data=false | |
networks: | |
- cluster | |
master-fo: | |
image: elasticsearch:2.2 | |
command: elasticsearch -Des.node.master=true -Des.node.data=false -Des.discovery.zen.ping.unicast.hosts=es-master | |
depends_on: | |
- master | |
networks: | |
- cluster | |
data: | |
image: elasticsearch:2.2 | |
command: elasticsearch -Des.node.master=false -Des.node.data=true -Des.discovery.zen.ping.unicast.hosts=es-master | |
depends_on: | |
- master | |
networks: | |
- cluster | |
- client | |
kibana: | |
image: kibana:4.4 | |
environment: | |
ELASTICSEARCH_URL: http://es:9200 | |
links: | |
- data:es | |
ports: | |
- 5601:5601 | |
networks: | |
- client | |
depends_on: | |
- data | |
networks: | |
cluster: | |
driver: bridge | |
client: | |
driver: bridge | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment