Created
February 2, 2019 17:23
-
-
Save glenacota/19b005b13a252d6868c1ca09fac79872 to your computer and use it in GitHub Desktop.
Docker-compose file to build up an ElasticSearch cluster with 2 nodes running elasticsearch version 5.6.14.
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
version: '3' | |
services: | |
esv5node1: | |
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.14 | |
container_name: esv5node1 | |
environment: | |
- cluster.name=elastic-cluster | |
- node.name=esv5node1 | |
- bootstrap.memory_lock=true | |
- xpack.security.enabled=false | |
- ES_JAVA_OPTS=-Xms512m -Xmx512m | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
volumes: | |
- esv5node1-data:/usr/share/elasticsearch/v5/data | |
ports: | |
- 9200:9200 | |
networks: | |
- elastic-net | |
esv5node2: | |
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.14 | |
container_name: esv5node2 | |
environment: | |
- cluster.name=elastic-cluster | |
- bootstrap.memory_lock=true | |
- xpack.security.enabled=false | |
- discovery.zen.ping.unicast.hosts=esv5node1 | |
- ES_JAVA_OPTS=-Xms512m -Xmx512m | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
volumes: | |
- esv5node2-data:/usr/share/elasticsearch/v5/data | |
networks: | |
- elastic-net | |
kibana: | |
image: docker.elastic.co/kibana/kibana:5.6.14 | |
container_name: kibana | |
environment: | |
- elasticsearch.url=http://elasticsearch:9200 | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
ports: | |
- 5601:5601 | |
networks: | |
- elastic-net | |
links: | |
- esv5node1:elasticsearch | |
volumes: | |
esv5node1-data: | |
driver: local | |
esv5node2-data: | |
driver: local | |
networks: | |
elastic-net: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment