编辑docker-compose.yml,内容如下:version: '3'services:logstash02:image: logstash:6.4.1hostname: logstash02container_