docker-compose运行ES, Kibana和Cerebro
2024-09-05 16:52:06
原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/11764003.html
docker-compose.yaml
version: '2.2'
services:
cerebro:
image: lmenezes/cerebro:0.8.4
container_name: cerebro
ports:
- "9000:9000"
command:
- -Dhosts.0.host=http://elasticsearch:9200
networks:
- es7net
kibana:
image: kibana:7.5.0
container_name: kibana750
environment:
- XPACK_GRAPH_ENABLED=true
- TIMELION_ENABLED=true
- XPACK_MONITORING_COLLECTION_ENABLED="true"
ports:
- "5601:5601"
networks:
- es7net
elasticsearch:
image: elasticsearch:7.5.0
container_name: es750
environment:
- cluster.name=haha
- node.name=es750
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- discovery.seed_hosts=es750
- cluster.initial_master_nodes=es750
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es750data1:/Users/haha/dockerdata/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
networks:
- es7net volumes:
es750data1:
driver: local networks:
es7net:
driver: bridge
docker-compose指令
#启动
docker-compose up #后台启动
docker-compose up -d #停止容器
docker-compose down #停止容器并且移除数据
docker-compose down -v
ES
http://localhost:9200/_cat/health?v
Cerebro
http://localhost:9000/#/overview?host=http:%2F%2Felasticsearch:9200
Kibana
http://localhost:5601/app/kibana#/home?_g=()
Reference
https://www.docker.com/products/docker-desktop
https://docs.docker.com/compose/install/
https://www.elastic.co/cn/blog/how-to-make-a-dockerfile-for-elasticsearch
https://www.elastic.co/cn/blog/elasticsearch-docker-plugin-management
https://www.elastic.co/cn/blog/docker-networking
https://github.com/lmenezes/cerebro
https://github.com/deviantony/docker-elk
最新文章
- nodejs复习02
- django开发个人简易Blog—nginx+uwsgin+django1.6+mysql 部署到CentOS6.5
- 背水一战 Windows 10 (15) - 动画: 缓动动画
- express框架路由配置及congtroller自动加载
- 东大OJ-1051-旅行家的预算
- H5移动端知识点总结
- javascript触发input-file的click事件
- VC调用javascript的几种方法
- EasyUI easyui-combobox 重复发送请求
- php五大运行模式CGI,FAST-CGI,CLI,ISAPI,APACHE模式浅谈
- oracle 数据库管理--管理表空间和数据文件
- 学习ActiveMQ(二):点对点(队列)模式消息演示
- reedis 解决在windows下启动闪退
- 微信开发时调用jssdk,在安卓设备中成功调用;在ios设备中返回错误消息:config fail,无其他具体错误消息,且接口权限显示获取ok,无法调用
- Perhaps you are running on a JRE rather than a JDK
- Linux基础命令---删除用户userdel
- centos6安装nginx
- “std”: 具有该名称的命名空间不存在
- [转]ASP.NET MVC 5 - 给电影表和模型添加新字段
- 《DSP using MATLAB》示例Example 10.4