Docker安装SkyWalking


doker-compose文件

version: '3.8'
services:
  skywalking-oap-server:
    image: ${OAP_IMAGE}
    container_name: skywalking-oap-server
    ports:
      - "9411:9411"
      - "1234:1234"
      - "11800:11800"
      - "12800:12800"
    environment:
      SW_STORAGE: elasticsearch
      SW_STORAGE_ES_CLUSTER_NODES: 172.16.32.115:9200
      SW_HEALTH_CHECKER: default
      SW_ES_USER: elastic
      SW_ES_PASSWORD: elastic
      # 打开自监控
      SW_TELEMETRY: prometheus
      SW_PROMETHEUS_FETCHER: default
      SW_PROMETHEUS_FETCHER_ENABLED_RULES: self
      SW_METER_ANALYZER_ACTIVE_FILES: network-profiling,spring-sleuth,datasource,threadpool,satellite
      SW_ZIPKIN_HTTP_COLLECTOR_ENABLED: true
      TZ: Asia/Shanghai
      JAVA_OPTS: "-Xms2048m -Xmx2048m"
    restart: always

  skywalking-oap-ui:
    image: ${UI_IMAGE}
    container_name: skywalking-oap-ui
    depends_on:
      - skywalking-oap-server
    links:
      - skywalking-oap-server
    ports:
      - "8080:8080"
    environment:
      TZ: Asia/Shanghai
      SW_OAP_ADDRESS: http://skywalking-oap-server:12800
    restart: always

.env文件

OAP_IMAGE=apache/skywalking-oap-server:latest
UI_IMAGE=apache/skywalking-ui:latest

文章作者: jhzhang_09
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 jhzhang_09 !
评论
  目录