1. 程式人生 > 其它 >Skywalking——docker環境部署

Skywalking——docker環境部署

1、安裝docker

  

2、安裝docker-compose

3、編寫docker-compose.yml檔案

version: '3.3'
services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:6.8.1
    container_name: elasticsearch
    restart: always
    ports:
      - 9200:9200/tcp
      - 9300:9300/tcp
    environment:
      - discovery.type=single-node
      
- bootstrap.memory_lock=true - "ES_JAVA_OPTS=-Xms512m -Xmx512m" ulimits: memlock: soft: -1 hard: -1 skywalking-oap: image: apache/skywalking-oap-server:6.6.0-es6 container_name: skywalking-oap depends_on: - elasticsearch links: - elasticsearch restart: always ports:
- 11800:11800/tcp - 12800:12800/tcp environment: SW_STORAGE: elasticsearch SW_STORAGE_ES_CLUSTER_NODES: elasticsearch:9200 skywalking-ui: image: apache/skywalking-ui:6.6.0 container_name: skywalking-ui depends_on: - skywalking-oap links: - skywalking-oap restart: always ports:
- 8080:8080/tcp environment: SW_OAP_ADDRESS: oap:12800

4、啟動容器

docker-compose -f sk.yml up -d

5、訪問 Skywalking UI

OK