编写docker-compose脚本
version: '3'
services:
elasticsearch:
image: elasticsearch:6.8.2
container_name: elasticsearch
restart: always
ports:
- 9200:9200
- 9300:9300
environment:
discovery.type: single-node
TZ: Asia/Shanghai
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- /etc/localtime:/etc/localtime
skywalking-oap:
image: apache/skywalking-oap-server:8.4.0-es6
container_name: skywalking-oap
depends_on:
- "elasticsearch"
links:
- elasticsearch
restart: always
ports:
- 11800:11800
- 12800:12800
environment:
SW_STORAGE: elasticsearch
SW_STORAGE_ES_CLUSTER_NODES: elasticsearch:9200
SW_HEALTH_CHECKER: default
SW_TELEMETRY: prometheus
JAVA_OPTS: "-Xms512m -Xmx512m"
healthcheck:
test: ["CMD", "./bin/swctl", "ch"]
interval: 30s
timeout: 10s
retries: 3
#start_period: 40s
volumes:
- /etc/localtime:/etc/localtime
skywalking-ui:
image: apache/skywalking-ui:8.4.0
container_name: skywalking-ui
depends_on:
- skywalking-oap
links:
- skywalking-oap
restart: always
ports:
- 3380:8080
environment:
SW_OAP_ADDRESS: skywalking-oap:12800
volumes:
- /etc/localtime:/etc/localtime
执行docker-compose up -d
安装kibana可视化工具:需要和ES版本完全一致文章来源:https://www.toymoban.com/news/detail-506434.html
docker pull docker.elastic.co/kibana/kibana:6.8.2
docker run --name kibana-02 \
-p 8088:5601 \
#指定kibana需要连接的es地址
-e elasticsearch.hosts="http://10.2.0.6:9200" \
docker.elastic.co/kibana/kibana:6.8.2
访问kibana
文章来源地址https://www.toymoban.com/news/detail-506434.html
到了这里,关于docker安装部署skywalking的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!