docker-swarm-review

This commit is contained in:
2026-05-13 15:23:46 +08:00
parent da02c6a994
commit 5074e9cc42
128 changed files with 13062 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
version: '3.8'
networks:
default:
name: ${NAMESPACE}
external: true
services:
server:
image: 'xuxueli/xxl-job-admin:2.4.1'
hostname: ${NAMESPACE}-xxl-job-admin
ports:
- '${NODE_PORT}:8080'
environment:
- TZ=Asia/Shanghai
- PARAMS=--xxl.job.logretentiondays=90 --xxl.job.accessToken= --spring.datasource.url=jdbc:mysql://${DATASOURCE_URL}?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai --spring.datasource.username=${DATASOURCE_USERNAME} --spring.datasource.password=${DATASOURCE_PASSWORD}
deploy:
mode: replicated
replicas: ${REPLICAS}
update_config:
order: start-first
placement:
constraints:
- node.labels.xxl_job_admin==1
max_replicas_per_node: 1