没服务器的先自行购买,腾讯云2H4G8M首年70–点击购买
QQ交流:1014549449 --------------点击跳转
需要先按照安装docker-compose 1.连上SSH,输入命令
$ 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.安装后到服务器root文件夹里面新建一个文件。 文件名:
docker-compose.yml
3.然后复制多容器代码
version: '2.0'
services:
q1:
image: whyour/qinglong:latest
container_name: ql1
restart: always
volumes:
- /root/qinglong/ql1/config:/ql/config
- /root/qinglong/ql1/scripts:/ql/scripts
- /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
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.复制代码进去后ssh输入
docker-compose up
之后ssh就会直接自动新建青龙面板了
一键依赖代码:
docker exec -it ql1 bash -c "$(curl -fsSL https://ghproxy.com/https://raw.githubusercontent.com/shidahuilang/QL-/main/npm.sh)"
|