美文网首页
Docker-compose部署Skywalking

Docker-compose部署Skywalking

作者: Habit_1027 | 来源:发表于2022-12-01 14:11 被阅读0次
    version: '3.3'
    services:
      elasticsearch:
        image: elasticsearch:7.10.1
        container_name: elasticsearch
        ports:
          - 9200:9200
          - 9300:9300
        environment:
          - discovery.type=single-node #单例模式
          - bootstrap.memory_lock=true #锁定物理内存地址,防止es内存被交换出去,也就是避免es使用swap交换分区,频繁的交换,会导致IOPS变高
          - "ES_JAVA_OPTS=-Xms2048m -Xmx2048m" #堆内存大小
          - TZ=Asia/Shanghai
        ulimits:
          memlock:
            soft: -1
            hard: -1
        volumes:
          - /data/elasticsearch/data:/usr/share/elasticsearch/data
    
      skywalking-oap:
        image: apache/skywalking-oap-server:8.9.1
        container_name: skywalking-oap
        restart: always
        depends_on:
          - elasticsearch
        links:
          - elasticsearch
        ports:
          - 11800:11800
          - 12800:12800
        environment:
          TZ: Asia/Shanghai
          SW_STORAGE: elasticsearch
          SW_STORAGE_ES_CLUSTER_NODES: elasticsearch:9200
    
      skywalking-ui:
        image: apache/skywalking-ui:8.9.1
        container_name: skywalking-ui
        restart: always
        depends_on:
          - skywalking-oap
        links:
          - skywalking-oap
        ports:
          - 8888:8080
        environment:
          TZ: Asia/Shanghai
          SW_OAP_ADDRESS: skywalking-oap:12800
    

    相关文章

      网友评论

          本文标题:Docker-compose部署Skywalking

          本文链接:https://www.haomeiwen.com/subject/vrxdtdtx.html