docker-compose安装skywalking

这篇文章也很不错:docker-compose方式安装skywalking (分布式)_猿-猿的博客-CSDN博客

docker-compose文件:

version: '3.3'
services:
  elasticsearch:
    image: elasticsearch:7.9.0
    container_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.7.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

在浏览器访问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

你可能感兴趣的:(logstash,filebeat,kibana,docker,skywalking,elasticsearch)