安装
docker pull xuxueli/xxl-job-admin:2.4.1
- 创建
/home/xxl_job/application.properties
配置
spring.datasource.url=jdbc:mysql://192.168.1.19:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai
spring.datasource.username=xxl_job
spring.datasource.password=123456
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.mail.host=smtp.qiye.aliyun.com
spring.mail.port=465
spring.mail.username=test@domain.com
spring.mail.from=test@doman.com
spring.mail.password=123456
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.starttls.required=true
spring.mail.properties.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
xxl.job.accessToken=boJuvUB0L0uF3iyMynJQbnbmc8javjYUD97opbH0i
xxl.job.i18n=zh_CN
### 调度线程池最大线程配置【必填】
xxl.job.triggerpool.fast.max=200
xxl.job.triggerpool.slow.max=100
### 调度中心日志表数据保存天数 [必填]:过期日志自动清理;限制大于等于7时生效,否则, 如-1,关闭自动清理功能;
xxl.job.logretentiondays=30
运行
docker run -e PARAMS="--spring.config.location=/application.properties" -p 7080:8080 -v /home/xxl_job/application.properties:/application.properties -v /home/xxl_job/applogs:/data/applogs --name xxl-job-admin -d xuxueli/xxl-job-admin:2.4.1
访问
http://127.0.0.1:7080