Created
July 4, 2017 01:46
-
-
Save sourcepirate/4a169b4dc704135289c6095941ca79da to your computer and use it in GitHub Desktop.
cluster using elasticsearch
This file contains hidden or 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
elasticsearch_master: | |
image: elasticsearch:latest | |
command: "elasticsearch -Des.cluster.name=workagram -Des.node.master=true -Des.node.data=false" | |
environment: | |
- ES_JAVA_OPTS="-Xms512m -Xmx512m" | |
ports: | |
- "9200:9200" | |
- "9300:9300" | |
elasticsearch1: | |
image: elasticsearch:latest | |
command: "elasticsearch -Des.cluster.name=workagram -Des.discovery.zen.ping.unicast.hosts=elasticsearch_master" | |
links: | |
- elasticsearch_master | |
volumes: | |
- "/opt/elasticsearch/data" | |
environment: | |
- ES_JAVA_OPTS="-Xms512m -Xmx512m" | |
elasticsearch2: | |
image: elasticsearch:latest | |
command: "elasticsearch -Des.cluster.name=workagram -Des.discovery.zen.ping.unicast.hosts=elasticsearch_master" | |
links: | |
- elasticsearch_master | |
volumes: | |
- "/opt/elasticsearch/data" | |
environment: | |
- ES_JAVA_OPTS="-Xms512m -Xmx512m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment