代码拉取完成,页面将自动刷新
同步操作将从 张奇峰/elk-docker-compose 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
version: "3.8"
services:
elasticsearch:
image: elasticsearch:${ELK_VERSION}
container_name: elasticsearch-${ELK_VERSION}
environment:
- TZ=Asia/Shanghai
- discovery.type=single-node
- bootstrap.memory_lock=true
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- 9200:9200
- 127.0.0.1:9300:9300
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- ./elasticsearch/config/:/usr/share/elasticsearch/config/
- ./elasticsearch/data/:/usr/share/elasticsearch/data/
- ./elasticsearch/logs/:/usr/share/elasticsearch/logs/
networks:
- elk-net
ulimits:
memlock:
soft: -1
hard: -1
logstash:
image: logstash:${ELK_VERSION}
container_name: logstash-${ELK_VERSION}
environment:
- TZ=Asia/Shanghai
depends_on:
- elasticsearch
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- ./logstash/pipeline/:/usr/share/logstash/pipeline/
- ./logstash/config/:/usr/share/logstash/config
- ./logstash/db_geoLite2_city/:/usr/share/logstash/db_geoLite2_city
# 被采集的日志文件往往要求都是实时性的,所以必须映射目录,不要映射文件,否则文件变化 logstash 不会实时采集,只有每次启动的时候才会采集
# - /home/wwwlogs/project2021/test.log:/usr/share/wwwlogs/project2021/test.log # 该方式当文件发生变化时,logstash 不会实时采集,原因参见避坑指南链接 ↓ ↓ ↓
# 避坑指南参见:https://blog.csdn.net/biao0309/article/details/105186106
- /home/wwwlogs/project2021/:/usr/share/wwwlogs/project2021/
networks:
- elk-net
ulimits:
memlock:
soft: -1
hard: -1
kibana:
image: kibana:${ELK_VERSION}
container_name: kibana-${ELK_VERSION}
depends_on:
- elasticsearch
ports:
- "5601:5601"
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- ./kibana/config/:/usr/share/kibana/config/
networks:
- elk-net
ulimits:
memlock:
soft: -1
hard: -1
networks:
elk-net:
driver: bridge
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。