使用docker compose部署skyworking9.0

cat docker-compose.yaml

version: '3.3'
services:
es8:
image: elasticsearch:8.4.2
container_name: es8
ports:
- 9200:9200
- 9300:9300
environment:
xpack.security.enabled: "false"
discovery.type: "single-node" #单例模式
ingest.geoip.downloader.enabled: "false"
#锁定物理内存地址,防止es内存被交换出去,也就是避免es使用swap交换分区,频繁的交换,会导致IOPS变高
bootstrap.memory_lock: "true"
ES_JAVA_OPTS: "-Xms6g -Xmx6g" #堆内存大小
TZ: Asia/Shanghai
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- /home/skywalking/elasticsearch/data:/usr/share/elasticsearch/data
skywalking-oap:
image: apache/skywalking-oap-server:9.3.0
container_name: skywalking-oap
restart: always
depends_on:
- es8
links:
- es8
ports:
- 11800:11800
- 12800:12800
environment:
SW_CORE_RECORD_DATA_TTL: 7 #记录数据的有效期,单位天
SW_CORE_METRICS_DATA_TTL: 7 #分析指标数据的有效期,单位天
SW_ENABLE_UPDATE_UI_TEMPLATE: "true" # 开启dashboard编辑修改功能
SW_HEALTH_CHECKER: default
TZ: Asia/Shanghai
SW_STORAGE: elasticsearch
JAVA_OPTS: "-Xms2048m -Xmx2048m"
#SW_STORAGE: elasticsearch7
SW_STORAGE_ES_CLUSTER_NODES: es8:9200
#volumes:
#- ./config:/skywalking/config
skywalking-ui:
image: apache/skywalking-ui:9.3.0
#image: apache/skywalking-ui:9.0.0
container_name: skywalking-ui
restart: always
depends_on:
- skywalking-oap
links:
- skywalking-oap
ports:
- 8080:8080
environment:
TZ: Asia/Shanghai
SW_HEALTH_CHECKER: default
SW_OAP_ADDRESS: http://skywalking-oap:12800
posted @   蒲公英PGY  阅读(1511)  评论(3编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示