docker-compose安装skywalking

2022-03-29  本文已影响0人  david161

官网地址

根据官网地址进入docker目录中,修改docker-compose.yml文件内容
https://github.com/apache/skywalking

基础镜像

docker pull elasticsearch:7.9.0
docker pull apache/skywalking-oap-server:8.1.0-es7
docker pull apache/skywalking-ui:8.1.0

docker-compose文件

version: '3.3'
services:
  elasticsearch:
    image: elasticsearch:7.9.0
    ontainer_name: elasticsearch
    restart: always
    ports:
      - 9200:9200
    environment:
      discovery.type: single-node
      TZ: Asia/Shanghai
    ulimits:
      memlock:
        soft: -1
        hard: -1
  oap:
    image: apache/skywalking-oap-server:8.1.0-es7
    container_name: oap
    depends_on:
      - elasticsearch
    links:
      - elasticsearch
    restart: always
    ports:
      - 11800:11800
      - 12800:12800
    environment:
      SW_STORAGE: elasticsearch7 # 指定ES版本
      SW_STORAGE_ES_CLUSTER_NODES: elasticsearch:9200
      TZ: Asia/Shanghai
  ui:
    image: apache/skywalking-ui:8.1.0
    container_name: ui
    depends_on:
      - oap
    links:
      - oap
    restart: always
    ports:
      - 8080:8080
    environment:
      SW_OAP_ADDRESS: oap:12800
      TZ: Asia/Shanghai

查看启动

docker-compose ps

启动ui

在window系统中使用google浏览器访问skywalking-ui界面

elasticsearch启动时间比较长,需要耐心等待几分钟
http://192.168.198.141:8080/
备份与还原
docker save elasticsearch:7.9.0 apache/skywalking-oap-server:8.1.0-es7
apache/skywalking-ui:8.1.0 -o skywalking8.1.0.tar

docker load -i skywalking8.1.0.tar
上一篇下一篇

猜你喜欢

热点阅读