Qinglong panel multi-container tutorial, one-click multi-container




Qinglong installation and deployment tutorial ------- click to jump

If you don't have a server, buy it yourself first, Tencent Cloud 2H4G8M 70 in the first year – click to buy

QQ exchange: 1014549449 -------------- Click to jump




You need to install docker-compose first
. 1. Connect to SSH and enter the command

$ curl -L https://github.com/docker/compose/releases/download/1.8.0/run.sh > /usr/local/bin/docker-compose
$ chmod +x /usr/local/bin/docker-compose
$ docker-compose --version

2. After installation, create a new file in the server root folder.
file name:

docker-compose.yml

3. Then copy the multi-container code

version: '2.0'
services:
##第一个青龙
  q1:
    image: whyour/qinglong:latest    ##如果不想使用这个镜像可以在这里换
    container_name: ql1                 ##以此类推,需要几个容器就复制几个
    restart: always                          #需要修改的地方对照下就知道了
    volumes:
       - /root/qinglong/ql1/config:/ql/config           ##比如容器3的话需要把这里的ql1改成ql3
       - /root/qinglong/ql1/scripts:/ql/scripts         ##比如容器3的话需要把这里的ql1改成ql3
       - /root/qinglong/ql1/repo:/ql/repo                                  ##同上
       - /root/qinglong/ql1/log:/ql/log                                    ##同上
       - /root/qinglong/ql1/db:/ql/db                                      ## 同上
       - /root/qinglong/ql1/jbot:/ql/jbot                                  ##同上
       - /root/qinglong/ql1/raw:/ql/raw                                    ##同上 
    ports:
       - 6001:5700        ## 多容器需要修改端口6001可以改成你需要的端空,切记5700不能动
##第二个青龙
  q2:
    image: whyour/qinglong:latest
    container_name: ql2
    restart: always
    volumes:
       - /root/qinglong/ql2/config:/ql/config
       - /root/qinglong/ql2/scripts:/ql/scripts
       - /root/qinglong/ql2/repo:/ql/repo
       - /root/qinglong/ql2/log:/ql/log
       - /root/qinglong/ql2/db:/ql/db
       - /root/qinglong/ql2/jbot:/ql/jbot
       - /root/qinglong/ql2/raw:/ql/raw
    ports:
       - 6002:5700

4. After copying the code in, ssh input

docker-compose up

After that, ssh will automatically create a new Qinglong panel directly.

One-click dependency code:

docker exec -it ql1 bash -c  "$(curl -fsSL https://ghproxy.com/https://raw.githubusercontent.com/shidahuilang/QL-/main/npm.sh)"

Guess you like

Origin blog.csdn.net/qq_39910486/article/details/121780428