docker-compose.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. version: '3.6'
  2. services:
  3. packetbeat:
  4. image: docker.elastic.co/beats/packetbeat:8.2.3
  5. container_name: packetbeat
  6. cap_add: ['NET_RAW', 'NET_ADMIN']
  7. network_mode: host
  8. user: root
  9. command: -e -E 'output.elasticsearch.hosts=["https://elastic.joystreamstats.live:443"]'
  10. command: --strict.perms=false -e -E output.elasticsearch.hosts="https://elastic.joystreamstats.live:443" # -e flag to log to stderr and disable syslog/file output
  11. secrets:
  12. - source: packetbeat.yml
  13. target: /usr/share/packetbeat/packetbeat.yml
  14. healthcheck:
  15. test: packetbeat test config
  16. interval: 30s
  17. timeout: 15s
  18. retries: 5
  19. metricbeat:
  20. image: docker.elastic.co/beats/metricbeat:8.2.3
  21. container_name: metricbeat
  22. network_mode: host
  23. user: root
  24. command: --strict.perms=false -system.hostfs=/hostfs -e -E output.elasticsearch.hosts="https://elastic.joystreamstats.live:443" # -e flag to log to stderr and disable syslog/file output
  25. volumes:
  26. - /proc:/hostfs/proc:ro
  27. - /sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro
  28. - /:/hostfs:ro
  29. - /var/run/docker.sock:/var/run/docker.sock:ro
  30. secrets:
  31. - source: metricbeat.yml
  32. target: /usr/share/metricbeat/metricbeat.yml
  33. healthcheck:
  34. test: metricbeat test config
  35. interval: 30s
  36. timeout: 15s
  37. retries: 5
  38. secrets:
  39. packetbeat.yml:
  40. file: ./config/packetbeat/packetbeat.yml
  41. metricbeat.yml:
  42. file: ./config/metricbeat/metricbeat.yml