docker-compose.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # You need to run 'sysctl -w vm.max_map_count=262144' on the host machine
  2. elasticsearch7:
  3. image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.0.0
  4. command: elasticsearch -E "discovery.type=single-node"
  5. ports:
  6. - "12200:9200"
  7. - "12300:9300"
  8. fake-elastic7-data:
  9. image: grafana/fake-data-gen
  10. network_mode: bridge
  11. environment:
  12. FD_DATASOURCE: elasticsearch7
  13. FD_PORT: 12200
  14. filebeat7:
  15. image: docker.elastic.co/beats/filebeat-oss:7.0.0
  16. command: filebeat -e -strict.perms=false
  17. volumes:
  18. - ./docker/blocks/elastic7/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro
  19. - /var/log:/var/log:ro
  20. - ../data/log:/var/log/grafana:ro
  21. metricbeat7:
  22. image: docker.elastic.co/beats/metricbeat-oss:7.0.0
  23. network_mode: host
  24. command: metricbeat -e -strict.perms=false
  25. user: root
  26. volumes:
  27. - ./docker/blocks/elastic7/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml:ro
  28. - /var/run/docker.sock:/var/run/docker.sock:ro
  29. kibana7:
  30. image: docker.elastic.co/kibana/kibana-oss:7.0.0
  31. ports:
  32. - "5601:5601"
  33. environment:
  34. ELASTICSEARCH_HOSTS: http://elasticsearch7:9200