-
-
Save xeraa/d18506e2b45525f4230539c0c2b5b612 to your computer and use it in GitHub Desktop.
Minimal 3 node Elasticsearch + Kibana setup
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
ELASTIC_VERSION=5.6.9 | |
#ELASTIC_VERSION=6.3.0 |
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: | |
elasticsearch1: | |
container_name: elasticsearch1 | |
image: docker.elastic.co/elasticsearch/elasticsearch:$ELASTIC_VERSION | |
container_name: elasticsearch1 | |
environment: | |
- cluster.name=docker-cluster | |
- node.name=elasticsearch1 | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
- "discovery.zen.ping.unicast.hosts=elasticsearch2,elasticsearch3" | |
- "discovery.zen.minimum_master_nodes=2" | |
- "xpack.security.enabled=false" #Disable security to make the setup and upgrade easier | |
- "xpack.watcher.enabled=false" #Disable watcher to avoid unnecessary activity | |
- "xpack.monitoring.enabled=false" #Disable monitoring to avoid unnecessary activity | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
mem_limit: 1g | |
volumes: | |
- esdata_revolution1:/usr/share/elasticsearch/data | |
ports: | |
- 9201:9200 | |
networks: | |
- esnet | |
elasticsearch2: | |
container_name: elasticsearch2 | |
image: docker.elastic.co/elasticsearch/elasticsearch:$ELASTIC_VERSION | |
environment: | |
- cluster.name=docker-cluster | |
- node.name=elasticsearch2 | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
- "discovery.zen.ping.unicast.hosts=elasticsearch1,elasticsearch3" | |
- "discovery.zen.minimum_master_nodes=2" | |
- "xpack.security.enabled=false" #Disable security to make the setup and upgrade easier | |
- "xpack.watcher.enabled=false" #Disable watcher to avoid unnecessary activity | |
- "xpack.monitoring.enabled=false" #Disable monitoring to avoid unnecessary activity | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
mem_limit: 1g | |
volumes: | |
- esdata_revolution2:/usr/share/elasticsearch/data | |
ports: | |
- 9202:9200 | |
networks: | |
- esnet | |
elasticsearch3: | |
container_name: elasticsearch3 | |
image: docker.elastic.co/elasticsearch/elasticsearch:$ELASTIC_VERSION | |
environment: | |
- cluster.name=docker-cluster | |
- node.name=elasticsearch3 | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
- "discovery.zen.ping.unicast.hosts=elasticsearch1,elasticsearch2" | |
- "discovery.zen.minimum_master_nodes=2" | |
- "xpack.security.enabled=false" #Disable security to make the setup and upgrade easier | |
- "xpack.watcher.enabled=false" #Disable watcher to avoid unnecessary activity | |
- "xpack.monitoring.enabled=false" #Disable monitoring to avoid unnecessary activity | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
mem_limit: 1g | |
volumes: | |
- esdata_revolution3:/usr/share/elasticsearch/data | |
ports: | |
- 9203:9200 | |
networks: | |
- esnet | |
kibana: | |
container_name: kibana | |
image: docker.elastic.co/kibana/kibana:$ELASTIC_VERSION | |
ports: | |
- 5601:5601 | |
environment: | |
- "ELASTICSEARCH_URL=http://elasticsearch1:9200" | |
ports: | |
- 5601:5601 | |
links: | |
- elasticsearch1 | |
networks: | |
- esnet | |
volumes: | |
esdata_revolution1: | |
driver: local | |
esdata_revolution2: | |
driver: local | |
esdata_revolution3: | |
driver: local | |
networks: | |
esnet: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment