dockerfiles/zfile/README.md

52 lines
1.7 KiB
Markdown
Raw Normal View History

2021-06-11 12:13:08 +08:00
# zfile
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*
2021-06-13 15:15:53 +08:00
## 简介
2021-06-13 22:28:12 +08:00
基于 [zhaojun1998/zfile](https://github.com/zhaojun1998/zfile) 项目的 docker 镜像.
2021-06-13 15:15:53 +08:00
## 更新
2021-06-13 22:28:12 +08:00
**2021-06-11** 更新`3.1`版 docker 镜像,新增同时支持 X86 和 ARM 架构.
2021-06-13 15:15:53 +08:00
## 部署
2021-06-13 22:28:12 +08:00
### docker
2021-06-13 15:15:53 +08:00
首次运行会自动创建数据库目录和本地存储目录.后期迁移可直接将整个 zfile 目录备份恢复,并再次执行以下命令.
```shell
2021-06-13 22:28:12 +08:00
docker run -d \
--name=zfile \
--restart=always \
2021-06-13 15:15:53 +08:00
-p 8080:8080 \
-v /root/zfile/conf:/root/.zfile \
-v /root/zfile/data:/root/zfile/data \
stilleshan/zfile
```
2021-06-13 22:28:12 +08:00
### docker compose
2021-06-13 15:15:53 +08:00
下载 [docker-compose.yml](https://raw.githubusercontent.com/stilleshan/dockerfiles/main/zfile/docker-compose.yml) 执行以下命令启动:
```shell
docker-compose up -d
```
2021-06-13 22:28:12 +08:00
### 群晖 docker
[群晖NAS高级服务 - docker 部署 zfile 在线文件目录](https://www.ioiox.com/archives/93.html)
2021-06-13 15:15:53 +08:00
### 配置
访问以下安装地址进行安装配置.如使用本地存储,路径请填写`/root/zfile/data`.同时可以配置反向代理使用域名访问.
> 可以自行修改挂载命令来配置本地存储路径.
```shell
http://IP:8080/#/install
# 安装地址
http://IP:8080/#/main
# 前端页面
http://IP:8080/#/admin
# 管理页面
```
## 参考
2021-06-13 22:28:12 +08:00
- GitHub [zhaojun1998/zfile](https://github.com/zhaojun1998/zfile)
- [docker 部署 zfile 在线文件目录 - 支持本地,对象存储,OneDrive等各种环境.](https://www.ioiox.com/archives/92.html)
- [群晖NAS高级服务 - docker 部署 zfile 在线文件目录](https://www.ioiox.com/archives/93.html)
2021-06-11 12:13:08 +08:00