创建compose配置文件
cd /home/cloud/ && nano docker-compose.yml
配置Cloudreve代码
version: "3.8"
services:
cloudreve:
container_name: cloudreve
image: cloudreve/cloudreve:latest
restart: unless-stopped
ports:
- "5212:5212"
volumes:
- temp_data:/data
- ./cloudreve/uploads:/cloudreve/uploads
- ./cloudreve/conf.ini:/cloudreve/conf.ini
- ./cloudreve/cloudreve.db:/cloudreve/cloudreve.db
- ./cloudreve/avatar:/cloudreve/avatar
depends_on:
- aria2
aria2:
container_name: aria2
image: p3terx/aria2-pro
restart: unless-stopped
environment:
- RPC_SECRET= KEJILION
- RPC_PORT=6800
volumes:
- ./aria2/config:/config
- temp_data:/data
volumes:
temp_data:
driver: local
driver_opts:
type: none
device: $PWD/data
o: bind
运行
cd /home/cloud && docker-compose up -d
查询初始登录账号密码
docker-compose logs cloudreve
离线下载配置参数
RPC 服务器地址 => http://aria2:6800
RPC 授权令牌 => KEJILION
节点下载目录 => /data
查看运行状态
docker ps -a
开机自启动
docker update --restart=always nginx
参考文章:点击进入