docker-cloudreve

引言

CAC: Caddy反代+Aria2离线下载服务+Cloudreve

1. 创建Network

1
docker network create cloudreve-network

2. 创建Caddy配置文件

1
2
mkdir -p /cloudreve/dockercnf/caddy \
&& vim /cloudreve/dockercnf/caddy/Caddyfile

填入信息

1
2
3
4
5
6
cloudreve.example.com {
tls admin@example.com
proxy / cloudreve:5212 {
transparent
}
}

3. 启动Caddy服务

1
2
3
4
5
6
7
8
9
10
docker run -d \
--name caddy \
-e "ACME_AGREE=true" \
-e "CADDYPATH=/etc/caddycerts" \
-v /cloudreve/dockercnf/caddy/certs:/etc/caddycerts \
-v /cloudreve/dockercnf/caddy/Caddyfile:/etc/Caddyfile \
--network cloudreve-network \
-p 80:80 -p 443:443 \
--restart unless-stopped \
abiosoft/caddy

4. 启动Aria2服务(如不需要离线下载功能该步骤略过)

1
2
3
4
5
6
7
8
9
10
11
12
13
docker run -d \
--name aria2 \
--restart unless-stopped \
--log-opt max-size=1m \
-e PUID=1000 \
-e PGID=1000 \
-e RPC_SECRET=<SECRET> \
-p 6800:6800 \ #1
-p 6888:6888 -p 6888:6888/udp \
--network cloudreve-network \
-v /cloudreve/dockercnf/aria2/conf:/config \
-v /cloudreve/dockercnf/aria2/temp:/downloads \
p3terx/aria2-pro

参考

感谢帮助!