Update zfile
This commit is contained in:
parent
91f80a0fc0
commit
4f499b1f8f
|
@ -4,7 +4,45 @@ GitHub [stilleshan/dockerfiles](https://github.com/stilleshan/dockerfiles)
|
|||
Docker [stilleshan/zfile](https://hub.docker.com/r/stilleshan/zfile)
|
||||
> *docker image support for X86 and ARM*
|
||||
|
||||
## 使用
|
||||
## 简介
|
||||
基于 [zhaojun1998/zfile](https://github.com/zhaojun1998/zfile) 项目的 docker 镜像.支持挂载目录持久化存储,方便使用,管理和迁移.
|
||||
|
||||
## 更新
|
||||
**2021-06-11** 更新 3.1 版 docker 镜像同时支持 X86 和 ARM
|
||||
|
||||
## 部署
|
||||
### 群晖 docker 部署
|
||||
[群晖NAS高级服务 - docker 部署 zfile 在线文件目录](https://www.ioiox.com/archives/93.html)
|
||||
|
||||
### Linux docker 部署
|
||||
首次运行会自动创建数据库目录和本地存储目录.后期迁移可直接将整个 zfile 目录备份恢复,并再次执行以下命令.
|
||||
```shell
|
||||
docker run -d --name=zfile --restart=always \
|
||||
-p 8080:8080 \
|
||||
-v /root/zfile/conf:/root/.zfile \
|
||||
-v /root/zfile/data:/root/zfile/data \
|
||||
stilleshan/zfile
|
||||
```
|
||||
|
||||
### docker compose 部署
|
||||
下载 [docker-compose.yml](https://raw.githubusercontent.com/stilleshan/dockerfiles/main/zfile/docker-compose.yml) 执行以下命令启动:
|
||||
```shell
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
### 配置
|
||||
访问以下安装地址进行安装配置.如使用本地存储,路径请填写`/root/zfile/data`.同时可以配置反向代理使用域名访问.
|
||||
> 可以自行修改挂载命令来配置本地存储路径.
|
||||
```shell
|
||||
http://IP:8080/#/install
|
||||
# 安装地址
|
||||
http://IP:8080/#/main
|
||||
# 前端页面
|
||||
http://IP:8080/#/admin
|
||||
# 管理页面
|
||||
```
|
||||
|
||||
## 参考
|
||||
参考以下链接:
|
||||
[docker 部署 zfile 在线文件目录 - 支持本地,对象存储,OneDrive等各种环境.](https://www.ioiox.com/archives/92.html)
|
||||
[群晖NAS高级服务 - docker 部署 zfile 在线文件目录](https://www.ioiox.com/archives/93.html)
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
version: "3"
|
||||
services:
|
||||
zfile:
|
||||
image: stilleshan/zfile
|
||||
container_name: zfile
|
||||
ports:
|
||||
- 8080:8080
|
||||
volumes:
|
||||
- ./conf:/root/.zfile
|
||||
- ./data:/root/zfile/data
|
||||
restart: always
|
||||
|
Loading…
Reference in New Issue