部署Cloudreve

朱治龙
2023-06-05 / 0 评论 / 11 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2024年04月07日,已超过276天没有更新,若内容或图片失效,请留言反馈。

参考链接: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

启动后从日志中查看登录账号信息:
Cloudreve日志

0

评论 (0)

取消