mkdir docker-elk
cd docker-elk
vim docker-compose.yml 打开文件,粘贴如下内容
version: '0.1'
services:
elasticsearch:
image: library/elasticsearch:7.13.2
container_name: elasticsearch
logstash:
image: library/logstash:7.13.2
container_name: logstash
kibana:
image: library/kibana:7.13.2
container_name: kibana