version: "3.4" services: es-master: container_name: es-master image: elasticsearch:7.3.1 restart: always ports: - 19200:9200 - 19300:9300 environment: - node.name=es-master - cluster.initial_master_nodes=es-master volumes: - "/home/smb/data/es/master:/usr/share/elasticsearch/data" - "/home/smb/config/es/master/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml" - "/home/smb/logs/es/master:/user/share/elasticsearch/logs" networks: - smb es-node1: container_name: es-node1 image: elasticsearch:7.3.1 restart: always volumes: - "/home/smb/data/es/node1:/usr/share/elasticsearch/data" - "/home/smb/config/es/node1/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml" - "/home/smb/logs/es/node1:/user/share/elasticsearch/logs" networks: - smb es-node2: container_name: es-node2 image: elasticsearch:7.3.1 restart: always volumes: - "/home/smb/data/es/node2:/usr/share/elasticsearch/data" - "/home/smb/config/es/node2/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml" - "/home/smb/logs/es/node2:/user/share/elasticsearch/logs" networks: - smb kibana: container_name: kibana image: kibana:7.3.1 ports: - 15601:5601 networks: - smb logstash: container_name: logstash image: logstash:7.3.1 ports: - 15044:5044 networks: - smb volumes: - "/home/smb/config/logstash/logstash.yml:/usr/share/logstash/config/logstash.yml" - "/home/smb/share/logstash/conf.d/:/usr/share/logstash/conf.d/" # filebeat: # container_name: filebeat # image: store/elastic/filebeat:7.3.1 # command: --strict.perms=false # networks: # - custom # volumes: # - ${PWD}/docker/filebeat/filebeat.docker.yml:/usr/share/filebeat/filebeat.yml # - /var/log/laravel/:/var/log/laravel/ # - /var/lib/docker/containers:/var/lib/docker/containers:ro # - /var/run/docker.sock:/var/run/docker.sock # networks: smb: