Skip to content

Instantly share code, notes, and snippets.

@ilbonte
Created February 28, 2020 09:54
Show Gist options
  • Save ilbonte/de329ff7cfd1badeefe9ce33f9dbe8ed to your computer and use it in GitHub Desktop.
Save ilbonte/de329ff7cfd1badeefe9ce33f9dbe8ed to your computer and use it in GitHub Desktop.
elasticsearch and kibana cluster v6.5.4
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:
@ilbonte
Copy link
Author

ilbonte commented Feb 28, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment