version: "3.9" services: logstash: image: logstash:7.17.10 container_name: logstash hostname: logstash privileged: true user: root volumes: - /volume5/storage/docker-data/logstash/data/:/usr/share/logstash/data/ - /volume5/storage/docker-data/logstash/conf/logstash.yml:/usr/share/logstash/config/logstash.yml - /volume5/storage/docker-data/logstash/conf/pipeline/:/usr/share/logstash/pipeline/ - /volume5/storage/docker-data/app/log/:/app/log/ restart: always