青龙面板多容器教程2023年3月23日

 代挂短信获取CK:

Prohttp://152.69.226.3:5016/#/login

使用方法复制下面代码新建一个docker-compose.yml的文件扔进去就行

放到服务器根目录执行docker-compose就可以

运行不了的安装docker-compose

可以配合多节点操作

version: '2.0'
services:
##第一个青龙
  q1:
    image: whyour/qinglong:latest
    container_name: ql1
    restart: always
    volumes:
       - /qinglong/ql1/config:/ql/config
       - /qinglong/ql1/scripts:/ql/scripts
       - /qinglong/ql1/repo:/ql/repo
       - /qinglong/ql1/log:/ql/log
       - /qinglong/ql1/db:/ql/db
       - /qinglong/ql1/jbot:/ql/jbot
       - /qinglong/ql1/raw:/ql/raw
    ports:
       - 5801:5700
##第二个青龙
  q2:
    image: whyour/qinglong:latest
    container_name: ql2
    restart: always
    volumes:
       - /qinglong/ql2/config:/ql/config
       - /qinglong/ql2/scripts:/ql/scripts
       - /qinglong/ql2/repo:/ql/repo
       - /qinglong/ql2/log:/ql/log
       - /qinglong/ql2/db:/ql/db
       - /qinglong/ql2/jbot:/ql/jbot
       - /qinglong/ql2/raw:/ql/raw
    ports:
       - 5802:5700
##第三个青龙
  q3:
    image: whyour/qinglong:latest
    container_name: ql3
    restart: always
    volumes:
       - /qinglong/ql3/config:/ql/config
       - /qinglong/ql3/scripts:/ql/scripts
       - /qinglong/ql3/repo:/ql/repo
       - /qinglong/ql3/log:/ql/log
       - /qinglong/ql3/db:/ql/db
       - /qinglong/ql3/jbot:/ql/jbot
       - /qinglong/ql3/raw:/ql/raw
    ports:
       - 5803:5700
##第四个青龙
  q4:
    image: whyour/qinglong:latest
    container_name: ql4
    restart: always
    volumes:
       - /qinglong/ql4/config:/ql/config
       - /qinglong/ql4/scripts:/ql/scripts
       - /qinglong/ql4/repo:/ql/repo
       - /qinglong/ql4/log:/ql/log
       - /qinglong/ql4/db:/ql/db
       - /qinglong/ql4/jbot:/ql/jbot
       - /qinglong/ql4/raw:/ql/raw
    ports:
       - 5804:5700
##第五个青龙
  q5:
    image: whyour/qinglong:latest
    container_name: ql5
    restart: always
    volumes:
       - /qinglong/ql5/config:/ql/config
       - /qinglong/ql5/scripts:/ql/scripts
       - /qinglong/ql5/repo:/ql/repo
       - /qinglong/ql5/log:/ql/log
       - /qinglong/ql5/db:/ql/db
       - /qinglong/ql5/jbot:/ql/jbot
       - /qinglong/ql5/raw:/ql/raw
    ports:
       - 5805:5700

你可能感兴趣的:(容器,docker,centos,linux,经验分享)