Elasticstack7.7.0容器安装
本文对容器部署ElasticStack7.7.0系列软件做一次记录
ElasticSearch7.7.0
docker pull elasticsearch:7.7.0
docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.7.0
Kibana7.7.0
docker pull kibana:7.7.0
docker run -d --name kibana -p 5601:5601 kibana:7.7.0
# 拷贝容器内配置文件路径到宿主机,进行配置
docker cp kibana:/usr/share/kibana/config /app/data/config/kibana/config
# 重新启动容器
docker rm -f kibana
docker run -d --name kibana -v /app/data/config/kibana/config:/usr/share/kibana/config -p 5601:5601 kibana:7.7.0
Logstash7.7.0
docker pull logstash:7.7.0
docker run -d --name logstash -p 9600:9600 -p 5044:5044 logstash:7.7.0
# 拷贝容器内配置文件路径到宿主机,进行配置
docker cp logstash:/usr/share/logstash/pipeline /app/data/config/logstash/pipeline
docker cp logstash:/usr/share/logstash/config /app/data/config/logstash/config
# 重新启动容器
docker rm -f logstash
docker run -d --name logstash -p 9600:9600 -p 5044:5044 \
-v /app/data/config/logstash/pipeline:/usr/share/logstash/pipeline \
-v /app/data/config/logstash/config:/usr/share/logstash/config \
logstash:7.7.0