docker es kibana 集群
Posted zhaohuanhuan
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker es kibana 集群相关的知识,希望对你有一定的参考价值。
docker-compose.yml
version: ‘3‘
services:
elasticsearch:
image: elasticsearch:6.5.4
container_name: elasticsearch
hostname: 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: elasticsearch:6.5.4
container_name: elasticsearch2
hostname: elasticsearch2
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=[elasticsearch,elasticsearch2,elasticsearch3]"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./esdata2:/usr/share/elasticsearch/data
networks:
- esnet
elasticsearch3:
image: elasticsearch:6.5.4
container_name: elasticsearch3
hostname: elasticsearch3
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=[elasticsearch,elasticsearch2,elasticsearch3]"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./esdata3:/usr/share/elasticsearch/data
networks:
- esnet
kibana:
image: kibana
container_name: kibana
ports:
- 5601:5601
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
networks:
- esnet
volumes:
esdata1:
driver: local
esdata2:
driver: local
esdata3:
driver: local
networks:
esnet:
docker-compose up -d
原文:https://www.jianshu.com/p/fdfead5acc23
以上是关于docker es kibana 集群的主要内容,如果未能解决你的问题,请参考以下文章
docker-compose es + kibana 集群/单机部署
如何在docker中部署Elasticsearch集群和kibana
2020第一篇热乎乎的干货ES集群+Kibana+Cerebro
docker-compose部署6.8.23版本elasticsearch+es-head+kibana多节点集群及部分排错处理