docker-swarm-review

This commit is contained in:
2026-05-13 15:23:46 +08:00
parent 33daa2864b
commit 95a34b2f89
128 changed files with 13062 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
version: '3.8'
networks:
default:
name: ${NAMESPACE}
external: true
services:
oap:
image: apache/skywalking-oap-server:10.0.0
hostname: ${NAMESPACE}-skywalking-oap
ports:
- '${NODE_PORT}:11800'
- '${NODE_PORT_2}:12800'
environment:
- TZ=Asia/Shanghai
- SW_STORAGE=elasticsearch
- SW_STORAGE_ES_CLUSTER_NODES=${NAMESPACE}-es-elasticsearch:9200
- SW_HEALTH_CHECKER=default
- SW_TELEMETRY=prometheus
- SW_STORAGE_ES_ADVANCED={"index.lifecycle.name":"sw-policy"}
- JAVA_OPTS=-Xms2048m -Xmx2048m
volumes:
- 'ext_config:/skywalking/ext-config'
deploy:
placement:
constraints:
- node.labels.${NAMESPACE}_skywalking==1
ui:
image: apache/skywalking-ui:10.0.0
ports:
- "${NODE_PORT_UI}:8080"
environment:
- TZ=Asia/Shanghai
- SW_OAP_ADDRESS=http://${NAMESPACE}-skywalking-oap:12800
- SW_ZIPKIN_ADDRESS=http://${NAMESPACE}-skywalking-oap:9412
depends_on:
- oap
deploy:
update_config:
order: start-first
placement:
constraints:
- node.labels.${NAMESPACE}_skywalking==1
volumes:
ext_config:
driver: local