Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

70 linhas
1.8 KiB

2 anos atrás
  1. version: '3'
  2. services:
  3. elasticsearch:
  4. image: elasticsearch:6.4.1
  5. container_name: elasticsearch
  6. restart: always
  7. environment:
  8. - cluster.name=elasticsearch
  9. - xpack.security.enabled=false
  10. - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  11. - node.name=elasticsearch_node_1
  12. - "TZ=Asia/Shanghai"
  13. volumes:
  14. - /febs/elasticsearch/data:/usr/share/elasticsearch/data
  15. - /febs/elasticsearch/logs:/usr/share/elasticsearch/logs
  16. - /febs/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
  17. ports:
  18. - 9200:9200
  19. - 9300:9300
  20. kibana:
  21. image: kibana:6.4.1
  22. container_name: kibana
  23. links:
  24. - elasticsearch:es #配置elasticsearch域名为 es
  25. depends_on:
  26. - elasticsearch
  27. environment:
  28. - "elasticsearch.hosts=http://es:9200" #因为上面配置了域名,所以这里可以简写为 http://es:9200
  29. ports:
  30. - 5601:5601
  31. logstash:
  32. image: logstash:6.4.1
  33. container_name: logstash
  34. volumes:
  35. - /febs/logstash/logstash-febs.conf:/usr/share/logstash/pipeline/logstash.conf
  36. depends_on:
  37. - elasticsearch
  38. links:
  39. - elasticsearch:es
  40. ports:
  41. - 4560:4560
  42. skywalking-oap:
  43. image: apache/skywalking-oap-server:6.4.0
  44. container_name: skywalking-oap
  45. depends_on:
  46. - elasticsearch
  47. links:
  48. - elasticsearch
  49. restart: always
  50. ports:
  51. - 11800:11800
  52. - 12800:12800
  53. environment:
  54. - "TZ=Asia/Shanghai"
  55. volumes:
  56. - /febs/skywalking/config:/apache-skywalking-apm-bin/config:ro
  57. skywalking-ui:
  58. image: apache/skywalking-ui:6.4.0
  59. container_name: skywalking-ui
  60. depends_on:
  61. - skywalking-oap
  62. links:
  63. - skywalking-oap
  64. restart: always
  65. ports:
  66. - 8080:8080
  67. environment:
  68. - "collector.ribbon.listOfServers=skywalking-oap:12800"
  69. - "TZ=Asia/Shanghai"