原创转载请注明出处: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

最新文章

  1. nodejs复习02
  2. django开发个人简易Blog—nginx+uwsgin+django1.6+mysql 部署到CentOS6.5
  3. 背水一战 Windows 10 (15) - 动画: 缓动动画
  4. express框架路由配置及congtroller自动加载
  5. 东大OJ-1051-旅行家的预算
  6. H5移动端知识点总结
  7. javascript触发input-file的click事件
  8. VC调用javascript的几种方法
  9. EasyUI easyui-combobox 重复发送请求
  10. php五大运行模式CGI,FAST-CGI,CLI,ISAPI,APACHE模式浅谈
  11. oracle 数据库管理--管理表空间和数据文件
  12. 学习ActiveMQ(二):点对点(队列)模式消息演示
  13. reedis 解决在windows下启动闪退
  14. 微信开发时调用jssdk,在安卓设备中成功调用;在ios设备中返回错误消息:config fail,无其他具体错误消息,且接口权限显示获取ok,无法调用
  15. Perhaps you are running on a JRE rather than a JDK
  16. Linux基础命令---删除用户userdel
  17. centos6安装nginx
  18. “std”: 具有该名称的命名空间不存在
  19. [转]ASP.NET MVC 5 - 给电影表和模型添加新字段
  20. 《DSP using MATLAB》示例Example 10.4

热门文章

  1. Eclipse中安装和使用FindBugs
  2. 学习日记2、easyui treeGrid属性及时间
  3. face_recognition开源人脸识别库:离线识别率高达99.38%
  4. 刚性方程 Stiff equation
  5. Jmeter从数据库中读取数据
  6. JSP中四种属性保存范围(1)
  7. 使用Atom写你的笔记
  8. MySQL 查询语句--------------进阶6:连接查询
  9. Lambda拉姆达表达式
  10. Spring事务传播及数据库事务操作