参考链接:https://docs.cloudreve.org/getting-started/install#docker-compose
docker-compose.yml
version: "3.8"
services:
cloudreve:
container_name: cloudreve
image: cloudreve/cloudreve:latest
restart: unless-stopped
ports:
- "8004:5212"
volumes:
- temp_data:/data
- ./cloudreve/uploads:/cloudreve/uploads
- ./cloudreve/conf.ini:/cloudreve/conf.ini
- ./cloudreve/cloudreve.db:/cloudreve/cloudreve.db
- ./avatar:/cloudreve/avatar
depends_on:
- aria2
aria2:
container_name: aria2
image: ddsderek/aria2-pro
restart: unless-stopped
environment:
- RPC_SECRET=your_aria_rpc_token
- RPC_PORT=6800
- DOWNLOAD_DIR=/data
- PUID=1000
- PGID=1000
- UMASK_SET=022
- TZ=Asia/Shanghai
volumes:
- ./aria2/config:/config
- temp_data:/data
volumes:
temp_data:
driver: local
driver_opts:
type: none
device: ./data
o: bind
在当前目录创建相关目录及文件
mkdir -vp cloudreve/{uploads,avatar} \
&& touch cloudreve/conf.ini \
&& touch cloudreve/cloudreve.db \
&& mkdir -p aria2/config \
&& mkdir -p data/aria2 \
&& chmod -R 777 data/aria2
启动容器
docker compose up -d
启动后从日志中查看登录账号信息:
评论 (0)