skywalking
version: '3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.6
container_name: elasticsearch
restart: always
ports:
- 9200:9200
- 9300:9300
environment:
- discovery.type=single-node
- TZ=Asia/Shanghai
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
volumes:
- /skywalking/elasticsearch/data:/usr/share/elasticsearch/data
ulimits:
memlock:
soft: -1
hard: -1
oap:
image: docker.io/apache/skywalking-oap-server:9.4.0
container_name: oap
depends_on:
- elasticsearch
restart: always
ports:
- 11800:11800
- 12800:12800
environment:
SW_CORE_RECORD_DATA_TTL: 15
SW_CORE_METRICS_DATA_TTL: 15
SW_STORAGE: elasticsearch
SW_STORAGE_ES_CLUSTER_NODES: elasticsearch:9200
SW_ENABLE_UPDATE_UI_TEMPLATE: true
TZ: Asia/Shanghai
JAVA_OPTS: "-Xms2048m -Xmx2048m"
ui:
image: docker.io/apache/skywalking-ui:9.4.0
container_name: ui
depends_on:
- oap
links:
- oap
restart: always
ports:
- 8080:8080
environment:
SW_OAP_ADDRESS: http://oap:12800
SW_ZIPKIN_ADDRESS: http://oap:9412
sed -i '/ADD/a ADD ./apache-skywalking-java-agent-9.2.0.tgz /' Dockerfile
https://mirrors.tuna.tsinghua.edu.cn/apache/skywalking/java-agent/9.2.0/apache-skywalking-java-agent-9.2.0.tgz