1 Star 0 Fork 35

main_313/docker-compose

forked from kancy/docker-compose 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose-elasticsearch-cluster.yml 1.84 KB
一键复制 编辑 原始数据 按行查看 历史
huangchengkang 提交于 2019-10-31 12:01 . 添加elastic
version: '3'
services:
# ref: https://blog.csdn.net/maquealone/article/details/89417257
# ref: https://www.elastic.co/guide/en/elasticsearch/reference/6.5/docker.html#docker-prod-cluster-composefile
elasticsearch_master:
image: bolingcavalry/elasticsearch-with-ik:6.5.0
container_name: elasticsearch_master
restart: always
environment:
- cluster.name=elasticsearch-cluster
- node.name=node_master_9200
- node.master=true
- node.data=true
- bootstrap.memory_lock=true
- http.cors.enabled=true
- http.cors.allow-origin=*
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- /data/docker_file/elasticsearch-cluster/master:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
elasticsearch_slave1:
image: bolingcavalry/elasticsearch-with-ik:6.5.0
container_name: elasticsearch_slave_node_1
restart: always
environment:
- cluster.name=elasticsearch-cluster
- node.name=node_slave_9201
- node.master=false
- node.data=true
- bootstrap.memory_lock=true
- http.cors.enabled=true
- http.cors.allow-origin=*
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "discovery.zen.ping.unicast.hosts=10.139.60.139"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- /data/docker_file/elasticsearch-cluster/slave1:/usr/share/elasticsearch/data
ports:
- 9201:9200
- 9301:9300
depends_on:
- elasticsearch_master
kibana:
image: kibana:6.5.0
container_name: kibana
environment:
- SERVER_NAME=kibana
- ELASTICSEARCH_URL=http://10.139.60.138:9200
- XPACK_MONITORING_ENABLED=true
ports:
- 5601:5601
depends_on:
- elasticsearch_master
external_links:
- elasticsearch_master
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/main_313/docker-compose.git
git@gitee.com:main_313/docker-compose.git
main_313
docker-compose
docker-compose
master

搜索帮助