elk.conf 843 B

12345678910111213141516171819202122232425262728293031323334353637
  1. [base]
  2. ;库来源
  3. library = docker.shemic.com/
  4. path = {base}
  5. network = elk
  6. ;版本号暂无用处
  7. version = elk5.5.1
  8. [java]
  9. image = dev/java
  10. command = share_java
  11. alias = java
  12. restart = false
  13. [es]
  14. image = elastic/elasticsearch
  15. port = 9200:9200
  16. volumes = {path}conf/elastic/elasticsearch:/usr/local/elasticsearch/config
  17. command = elasticsearch
  18. hook.start = elasticsearch
  19. [#logstash]
  20. ;暂时不用,如需启用,请修改filebeat配置
  21. image = elastic/logstash
  22. volumes = {path}conf/elastic/logstash:/usr/local/logstash/config
  23. command = logstash
  24. [filebeat]
  25. image = elastic/filebeat
  26. volumes = {path}conf/elastic/filebeat:/usr/local/filebeat/config,{path}logs/nginx/web-nginx/logs:/root/filebeat
  27. command = filebeat
  28. [kibana]
  29. image = elastic/kibana
  30. port = 5602:5601
  31. volumes = {path}conf/elastic/kibana:/usr/local/kibana/config
  32. command = kibana