windows docker安装cloudreve

本文最后更新于 2023年9月22日。

windows-docker安装cloudreve

在E盘新建E:/docker/dc1docker-compose.yml文件,写入

version: "3.4"
volumes:
  # tempData:
  cloudreve:
  uploads:
services:  
  cloudreve:
      container_name: cloudreve
      image: cloudreve/cloudreve:latest
      restart: unless-stopped
      ports:
        - "5212:5212"
        # - "443:443"
      volumes:
        - cloudreve:/cloudreve
        - uploads:/cloudreve/uploads

进入该文件夹,运行docker-compose启动:


E:\docker\dc1>docker-compose up
Creating network "dc1_default" with the default driver
Creating volume "dc1_cloudreve" with default driver
Creating volume "dc1_uploads" with default driver
Pulling cloudreve (cloudreve/cloudreve:latest)...
latest: Pulling from cloudreve/cloudreve
df9b9388f04a: Pull complete
498ebbff206e: Pull complete
fb194540a415: Pull complete
e8b4888e2dbc: Pull complete
9cbeaf8a5dae: Pull complete
79c8107abf5c: Pull complete
Digest: sha256:155215f9a4a3e19fcc0fa3ec4352ac8fa2bd8f674d7e61df77d037a0543eb7a5
Status: Downloaded newer image for cloudreve/cloudreve:latest
Creating cloudreve ... done
Attaching to cloudreve
cloudreve    |
cloudreve    |    ___ _                 _
cloudreve    |   / __\ | ___  _   _  __| |_ __ _____   _____
cloudreve    |  / /  | |/ _ \| | | |/ _  | '__/ _ \ \ / / _ \
cloudreve    | / /___| | (_) | |_| | (_| | | |  __/\ V /  __/
cloudreve    | \____/|_|\___/ \__,_|\__,_|_|  \___| \_/ \___|
cloudreve    |
cloudreve    |    V3.5.3  Commit #a11f819  Pro=false
cloudreve    | ================================================
cloudreve    |
cloudreve    | [Info]    2022-10-26 10:09:24 初始化数据库连接
cloudreve    | [Info]    2022-10-26 10:09:24 开始进行数据库初始化...
cloudreve    | [Info]    2022-10-26 10:09:24 初始管理员账号:admin@cloudreve.org
cloudreve    | [Info]    2022-10-26 10:09:24 初始管理员密码:xgjhFzpL
cloudreve    | [Info]    2022-10-26 10:09:25 开始执行数据库脚本 [UpgradeTo3.4.0]
cloudreve    | [Info]    2022-10-26 10:09:25 数据库初始化结束
cloudreve    | [Info]    2022-10-26 10:09:25 初始化任务队列,WorkerNum = 10
cloudreve    | [Info]    2022-10-26 10:09:25 初始化定时任务...
cloudreve    | [Info]    2022-10-26 10:09:25 当前运行模式:Master
cloudreve    | [Info]    2022-10-26 10:09:25 开始监听 :5212

访问本地5212端口成功
把生成的初始账户输入登录报错如下,刷新就好了