Docker 安装 ELK (ElasticSearch, Logstash, Kibana)
source link: https://www.jansora.com/notes/551
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Docker 安装 ELK (ElasticSearch, Logstash, Kibana)
安装 Docker 请参见 https://www.jansora.com/post/install-docker
镜像大小 2.3G, 最好用国内源下载
拉取 7.6.1 版本的ELK [[docker pull sebp/elk:761]]
配置文件描述符
配置原因请参考https://www.elastic.co/guide/cn/elasticsearch/guide/current/_file_descriptors_and_mmap.html
单次生效: [[sysctl -w vm.max_map_count=262144]] 永久生效: 修改/etc/sysctl.conf文件下的该设置
[[docker run -p 5601:5601 -p 9200:9200 -p 5044:5044 sebp/elk:761]]
如果需要以 daemon 进程启动, 请指定 [[docker run -d -p 5601:5601 ...]]
以 Docker-Compose 方式启动
注意
yml
格式
创建docker-compose.yml
并写入以下内容
elk:
image: sebp/elk:761
ports:
- "5601:5601"
- "9200:9200"
- "5044:5044"
启动 [[docker-compose up -d --no-recreate ]]
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK