项目地址:
https://hub.docker.com/r/whyour/qinglong
用 docker-compose 来安装
mkdir qinglong
wget https://raw.githubusercontent.com/whyour/qinglong/master/docker/docker-compose.yml
下载下来的文件改成自己实际路径
version: '2'
services:
web:
# alpine 基础镜像版本
image: whyour/qinglong:latest
# debian-slim 基础镜像版本
# image: whyour/qinglong:debian
volumes:
- /root/docker/qinglong:/ql/data
ports:
- "0.0.0.0:5700:5700"
environment:
# 部署路径非必须,以斜杠开头和结尾,比如 /test/
QlBaseUrl: '/'
restart: unless-stopped
然后运行
# start
docker-compose up -d
# stop
docker-compose down