欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

docker-compose安装xxl

程序员文章站 2022-05-27 23:46:07
...

docker-compose.yml

version: '3.9'
services:
  xxl-job-admin:
    image: lyr123456/xxl-admin:2.3.0
    container_name: xxl-job-admin
    networks:
      - net-xxl
    environment:
      PARAMS: "--spring.datasource.url=jdbc:mysql://192.168.0.105:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai  --spring.datasource.username=root  --spring.datasource.password=lyr123456"
    ports:
      - 8080:8080
    volumes:
      - ./logs/:/data/applogs/xxl-job/
  xxl-job-executor-sample-springboot:
    image: lyr123456/xxl-job-executor-sample-springboot:2.3.0
    container_name: xxl-job-executor
    networks:
      - net-xxl
    ports:
      - 9999:9999

    environment:
      PARAMS: "--xxl.job.admin.addresses=http://192.168.0.105:8080/xxl-job-admin --xxl.job.executor.ip=192.168.0.105"
    depends_on:
      - "xxl-job-admin"
    links:
      - "xxl-job-admin"
    volumes:
      - ./logs/:/data/applogs/xxl-job/
networks:
  net-xxl:
    external: false