跳至主要内容

Docker-Compose 安装 xxl-job-admin

 version: '3'

services:

 xxl-job-admin:

   image: xuxueli/xxl-job-admin:2.3.0

   restart: always

   container_name: xxl-job-admin

   #environment:

   #  PARAMS: '--spring.datasource.url=jdbc:mysql://192.168.1.110:3305/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai&useSSL=false --spring.datasource.username=root --spring.datasource.password=123456'

   ports:

     - 80:8080

   networks:

     - net_db

   volumes:

     - ./data/applogs:/data/applogs

networks:

 net_db:

   external: true

评论

此博客中的热门博文

Docker-Compose 安装 Portainer

 version: '3.1' services: portainer: image: portainer/portainer-ce:latest container_name: portainer hostname: portainer restart: always volumes: - "/var/run/docker.sock:/var/run/docker.sock" - "./portainer_data:/data" - "./portainer_cn:/public" environment: TZ: Asia/Shanghai LANG: en_US.UTF-8 ports: - "9001:9000" networks:      - net_db networks: net_db: external: true

Docker-Compose 安装 ClickHouse

 version: '3' services: clickhouse-server: restart: always image: yandex/clickhouse-server container_name: clickhouse-server ulimits: nofile: soft: 262144 hard: 262144 ports: - 8123:8123 - 9000:9000 - 9009:9009 volumes: - ./data:/var/lib/clickhouse - ./config.xml:/etc/clickhouse-server/config.xml - ./users.xml:/etc/clickhouse-server/users.xml - ./log:/var/log/clickhouse-server networks: - net_db healthcheck: test: wget --no-verbose --tries=1 --spider localhost:8123/ping || exit 1 interval: 2s timeout: 2s retries: 16 #clickhouse-client: # restart: always # image: yandex/clickhouse-client # container_name: clickhouse-client # command: ['--host', 'clickhouse-server', '--query', 'select * from system.functions order by name limit 4'] # networks: # - net_db # depends_on: # clickhouse-server: #