Skip to content

Docker-compose

docker

version: '3.8'

services:

  filebeat-app:
  image: docker.elastic.co/beats/filebeat:${ELK_VERSION}
  hostname: "{{.Service.Name}}-{{.Task.Slot}}"
    deploy:
      mode: global
      placement:
        max_replicas_per_node: 1
        constraints:
          - "node.labels.web-app==true"