Created
February 28, 2020 09:54
-
-
Save ilbonte/de329ff7cfd1badeefe9ce33f9dbe8ed to your computer and use it in GitHub Desktop.
elasticsearch and kibana cluster v6.5.4
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: "2.2" | |
| services: | |
| elasticsearch: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4 | |
| container_name: elasticsearch | |
| environment: | |
| - cluster.name=docker-cluster | |
| - bootstrap.memory_lock=true | |
| - "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
| ulimits: | |
| memlock: | |
| soft: -1 | |
| hard: -1 | |
| volumes: | |
| - esdata1:/usr/share/elasticsearch/data | |
| ports: | |
| - 9200:9200 | |
| networks: | |
| - esnet | |
| elasticsearch2: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4 | |
| container_name: elasticsearch2 | |
| environment: | |
| - cluster.name=docker-cluster | |
| - bootstrap.memory_lock=true | |
| - "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
| - "discovery.zen.ping.unicast.hosts=elasticsearch" | |
| ulimits: | |
| memlock: | |
| soft: -1 | |
| hard: -1 | |
| volumes: | |
| - esdata2:/usr/share/elasticsearch/data | |
| networks: | |
| - esnet | |
| kibana: | |
| image: docker.elastic.co/kibana/kibana:6.5.4 | |
| ports: | |
| - 5601:5601 | |
| networks: | |
| - esnet | |
| volumes: | |
| esdata1: | |
| driver: local | |
| esdata2: | |
| driver: local | |
| networks: | |
| esnet: |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker-compose upsources:
ES 6.8 on docker -> https://www.elastic.co/guide/en/elasticsearch/reference/6.8/docker.html
kibana 6.8 on docker -> https://www.elastic.co/guide/en/kibana/6.8/docker.html