docker-compose.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. version: '3.3'
  2. services:
  3. elasticsearch:
  4. image: docker.elastic.co/elasticsearch/elasticsearch:7.17.11
  5. container_name: elasticsearch
  6. restart: always
  7. ports:
  8. - 9200:9200
  9. - 9300:9300
  10. environment:
  11. - discovery.type=single-node
  12. - TZ=Asia/Shanghai
  13. - bootstrap.memory_lock=true
  14. - "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
  15. ulimits:
  16. memlock:
  17. soft: -1
  18. hard: -1
  19. skywalking-oap:
  20. image: docker.io/apache/skywalking-oap-server:9.5.0
  21. container_name: skywalking-oap
  22. depends_on:
  23. - elasticsearch
  24. restart: always
  25. ports:
  26. - 11800:11800
  27. - 12800:12800
  28. environment:
  29. SW_CORE_RECORD_DATA_TTL: 15
  30. SW_CORE_METRICS_DATA_TTL: 15
  31. SW_STORAGE: elasticsearch
  32. SW_STORAGE_ES_CLUSTER_NODES: elasticsearch:9200
  33. SW_ENABLE_UPDATE_UI_TEMPLATE: "true"
  34. TZ: Asia/Shanghai
  35. JAVA_OPTS: "-Xms2048m -Xmx2048m"
  36. skywalking-ui:
  37. image: docker.io/apache/skywalking-ui:9.5.0
  38. container_name: skywalking-ui
  39. depends_on:
  40. - skywalking-oap
  41. links:
  42. - skywalking-oap
  43. restart: always
  44. ports:
  45. - 8880:8080
  46. environment:
  47. SW_OAP_ADDRESS: http://skywalking-oap:12800