diff --git a/docs/install/os-docker.mdx b/docs/install/os-docker.mdx
index cc95600..b0ef7d5 100644
--- a/docs/install/os-docker.mdx
+++ b/docs/install/os-docker.mdx
@@ -1,10 +1,16 @@
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
# Docker & Docker Compose
## Docker
### 安装介绍
-Docker 镜像托管在 DockerHub:https://hub.docker.com/r/zhaojun1998/zfile
+Docker 镜像托管在 DockerHub:https://hub.docker.com/r/zhaojun1998/zfile, 如果你的网络环境访问 docker hub 不方便,还可以使用镜像:
+
+- 香港:swr.ap-southeast-1.myhuaweicloud.com/zfile-dev/zfile:latest
+- 北京: swr.cn-north-1.myhuaweicloud.com/zfile-dev/zfile:latest
:::tip 配置说明
@@ -15,15 +21,46 @@ Docker 镜像托管在 DockerHub:https://hub.docker.com/r/zhaojun1998/zfile
:::
+
+
+
+```bash showLineNumbers {2,5}
+docker run -d --name=zfile --restart=always \
+ -p 8080:8080 \
+ -v /root/zfile/db:/root/.zfile-v4/db \
+ -v /root/zfile/logs:/root/.zfile-v4/logs \
+ -v /root/zfile/file:/data/file \
+ zhaojun1998/zfile:latest
+```
+
+
+
+
+```bash showLineNumbers {2,5}
+docker run -d --name=zfile --restart=always \
+ -p 8080:8080 \
+ -v /root/zfile/db:/root/.zfile-v4/db \
+ -v /root/zfile/logs:/root/.zfile-v4/logs \
+ -v /root/zfile/file:/data/file \
+ swr.cn-north-1.myhuaweicloud.com/zfile-dev/zfile:latest
+```
+
+
+
+
```bash showLineNumbers {2,5}
docker run -d --name=zfile --restart=always \
-p 8080:8080 \
-v /root/zfile/db:/root/.zfile-v4/db \
-v /root/zfile/logs:/root/.zfile-v4/logs \
-v /root/zfile/file:/data/file \
- zhaojun1998/zfile
+ swr.ap-southeast-1.myhuaweicloud.com/zfile-dev/zfile:latest
```
+
+
+
+
### 配置文件映射 {#config}
**如需映射配置文件**则需要先在宿主机下载配置文件,然后映射到容器内:
@@ -37,6 +74,9 @@ curl -k -o /root/application.properties https://c.jun6.net/ZFILE/application.pro
> 提示: 启动容器后无法修改文件映射,需先 `docker rm -f zfile` 删除容器,再重新运行命令.
+
+
+
```bash showLineNumbers {6}
docker run -d --name=zfile --restart=always \
-p 8080:8080 \
@@ -44,9 +84,36 @@ docker run -d --name=zfile --restart=always \
-v /root/zfile/logs:/root/.zfile-v4/logs \
-v /root/zfile/file:/data/file \
-v /root/application.properties:/root/application.properties \
- zhaojun1998/zfile
+ zhaojun1998/zfile:latest
```
-
+
+
+
+ ```bash showLineNumbers {6}
+ docker run -d --name=zfile --restart=always \
+ -p 8080:8080 \
+ -v /root/zfile/db:/root/.zfile-v4/db \
+ -v /root/zfile/logs:/root/.zfile-v4/logs \
+ -v /root/zfile/file:/data/file \
+ -v /root/application.properties:/root/application.properties \
+ swr.cn-north-1.myhuaweicloud.com/zfile-dev/zfile:latest
+ ```
+
+
+
+ ```bash showLineNumbers {6}
+ docker run -d --name=zfile --restart=always \
+ -p 8080:8080 \
+ -v /root/zfile/db:/root/.zfile-v4/db \
+ -v /root/zfile/logs:/root/.zfile-v4/logs \
+ -v /root/zfile/file:/data/file \
+ -v /root/application.properties:/root/application.properties \
+ swr.ap-southeast-1.myhuaweicloud.com/zfile-dev/zfile:latest
+ ```
+
+
+
+---
## Docker Compose
@@ -61,6 +128,43 @@ docker run -d --name=zfile --restart=always \
:::
+
+
+```yml showLineNumbers {7,11}
+version: '3.3'
+services:
+ zfile:
+ container_name: zfile
+ restart: always
+ ports:
+ - '8080:8080'
+ volumes:
+ - '/root/zfile/db:/root/.zfile-v4/db'
+ - '/root/zfile/logs:/root/.zfile-v4/logs'
+ - '/root/zfile/file:/data/file'
+ image: zhaojun1998/zfile:latest
+```
+
+
+
+```yml showLineNumbers {7,11}
+version: '3.3'
+services:
+ zfile:
+ container_name: zfile
+ restart: always
+ ports:
+ - '8080:8080'
+ volumes:
+ - '/root/zfile/db:/root/.zfile-v4/db'
+ - '/root/zfile/logs:/root/.zfile-v4/logs'
+ - '/root/zfile/file:/data/file'
+ image: swr.cn-north-1.myhuaweicloud.com/zfile-dev/zfile:latest
+```
+
+
+
+
```yml showLineNumbers {7,11}
version: '3.3'
services:
@@ -73,9 +177,11 @@ services:
- '/root/zfile/db:/root/.zfile-v4/db'
- '/root/zfile/logs:/root/.zfile-v4/logs'
- '/root/zfile/file:/data/file'
- image: zhaojun1998/zfile
+ image: swr.ap-southeast-1.myhuaweicloud.com/zfile-dev/zfile:latest
```
+
+
### 配置文件映射 {#config2}
@@ -91,6 +197,25 @@ curl -k -o /root/application.properties https://c.jun6.net/ZFILE/application.pro
> 提示: 启动容器后无法修改文件映射,需先 `docker rm -f zfile` 删除容器,再重新运行命令.
+
+
+```yml showLineNumbers {12}
+version: '3.3'
+services:
+ zfile:
+ container_name: zfile
+ restart: always
+ ports:
+ - '8080:8080'
+ volumes:
+ - '/root/zfile/db:/root/.zfile-v4/db'
+ - '/root/zfile/logs:/root/.zfile-v4/logs'
+ - '/root/zfile/file:/data/file'
+ - '/root/application.properties:/root/application.properties'
+ image: zhaojun1998/zfile:latest
+```
+
+
```yml showLineNumbers {12}
version: '3.3'
services:
@@ -104,8 +229,29 @@ services:
- '/root/zfile/logs:/root/.zfile-v4/logs'
- '/root/zfile/file:/data/file'
- '/root/application.properties:/root/application.properties'
- image: zhaojun1998/zfile
+ image: swr.cn-north-1.myhuaweicloud.com/zfile-dev/zfile:latest
```
+
+
+```yml showLineNumbers {12}
+version: '3.3'
+services:
+ zfile:
+ container_name: zfile
+ restart: always
+ ports:
+ - '8080:8080'
+ volumes:
+ - '/root/zfile/db:/root/.zfile-v4/db'
+ - '/root/zfile/logs:/root/.zfile-v4/logs'
+ - '/root/zfile/file:/data/file'
+ - '/root/application.properties:/root/application.properties'
+ image: swr.ap-southeast-1.myhuaweicloud.com/zfile-dev/zfile:latest
+```
+
+
+
+
-----
diff --git a/docs/install/pro-docker.mdx b/docs/install/pro-docker.mdx
index ae5988c..04826fb 100644
--- a/docs/install/pro-docker.mdx
+++ b/docs/install/pro-docker.mdx
@@ -1,3 +1,6 @@
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
# Docker
Docker 镜像托管在 DockerHub:https://hub.docker.com/r/zhaojun1998/zfile-pro
@@ -23,14 +26,44 @@ Docker 镜像托管在 DockerHub:https://hub.docker.com/r/zhaojun1998/zfile-pr
:::
+
+
+
```bash showLineNumbers {2,5}
docker run -d --name=zfile-pro --restart=always \
-p 8080:8080 \
-v /root/zfile-pro/db:/root/.zfile-v4/db \
-v /root/zfile-pro/logs:/root/.zfile-v4/logs \
-v /root/zfile-pro/file:/data/file \
- zhaojun1998/zfile-pro
+ zhaojun1998/zfile-pro:latest
```
+
+
+
+```bash showLineNumbers {2,5}
+docker run -d --name=zfile-pro --restart=always \
+ -p 8080:8080 \
+ -v /root/zfile-pro/db:/root/.zfile-v4/db \
+ -v /root/zfile-pro/logs:/root/.zfile-v4/logs \
+ -v /root/zfile-pro/file:/data/file \
+ swr.cn-north-1.myhuaweicloud.com/zfile-dev/zfile:latest
+```
+
+
+
+```bash showLineNumbers {2,5}
+docker run -d --name=zfile-pro --restart=always \
+ -p 8080:8080 \
+ -v /root/zfile-pro/db:/root/.zfile-v4/db \
+ -v /root/zfile-pro/logs:/root/.zfile-v4/logs \
+ -v /root/zfile-pro/file:/data/file \
+ swr.ap-southeast-1.myhuaweicloud.com/zfile-dev/zfile:latest
+```
+
+
+
+
+
### 配置文件映射 {#config}
@@ -45,6 +78,20 @@ curl -k -o /root/application.properties https://c.jun6.net/ZFILE-PRO/application
> 提示: 启动容器后无法修改文件映射,需先 `docker rm -f zfile-pro` 删除容器,再重新运行命令.
+
+
+```bash showLineNumbers {6}
+docker run -d --name=zfile-pro --restart=always \
+ -p 8080:8080 \
+ -v /root/zfile-pro/db:/root/.zfile-v4/db \
+ -v /root/zfile-pro/logs:/root/.zfile-v4/logs \
+ -v /root/zfile-pro/file:/data/file \
+ -v /root/application.properties:/root/application.properties \
+ zhaojun1998/zfile-pro:latest
+```
+
+
+
```bash showLineNumbers {6}
docker run -d --name=zfile-pro --restart=always \
-p 8080:8080 \
@@ -52,9 +99,22 @@ docker run -d --name=zfile-pro --restart=always \
-v /root/zfile-pro/logs:/root/.zfile-v4/logs \
-v /root/zfile-pro/file:/data/file \
-v /root/application.properties:/root/application.properties \
- zhaojun1998/zfile-pro
+ swr.cn-north-1.myhuaweicloud.com/zfile-dev/zfile:latest
```
+
+
+```bash showLineNumbers {6}
+docker run -d --name=zfile-pro --restart=always \
+ -p 8080:8080 \
+ -v /root/zfile-pro/db:/root/.zfile-v4/db \
+ -v /root/zfile-pro/logs:/root/.zfile-v4/logs \
+ -v /root/zfile-pro/file:/data/file \
+ -v /root/application.properties:/root/application.properties \
+ swr.ap-southeast-1.myhuaweicloud.com/zfile-dev/zfile:latest
+```
+
+
## Docker Compose
@@ -70,6 +130,26 @@ docker run -d --name=zfile-pro --restart=always \
:::
+
+
+
+```yml showLineNumbers {7,11}
+version: '3.3'
+services:
+ zfile:
+ container_name: zfile-pro
+ restart: always
+ ports:
+ - '8080:8080'
+ volumes:
+ - '/root/zfile-pro/db:/root/.zfile-v4/db'
+ - '/root/zfile-pro/logs:/root/.zfile-v4/logs'
+ - '/root/zfile-pro/file:/data/file'
+ image: zhaojun1998/zfile-pro:latest
+```
+
+
+
```yml showLineNumbers {7,11}
version: '3.3'
services:
@@ -82,8 +162,29 @@ services:
- '/root/zfile-pro/db:/root/.zfile-v4/db'
- '/root/zfile-pro/logs:/root/.zfile-v4/logs'
- '/root/zfile-pro/file:/data/file'
- image: zhaojun1998/zfile-pro
+ image: swr.cn-north-1.myhuaweicloud.com/zfile-dev/zfile:latest
```
+
+
+
+```yml showLineNumbers {7,11}
+version: '3.3'
+services:
+ zfile:
+ container_name: zfile-pro
+ restart: always
+ ports:
+ - '8080:8080'
+ volumes:
+ - '/root/zfile-pro/db:/root/.zfile-v4/db'
+ - '/root/zfile-pro/logs:/root/.zfile-v4/logs'
+ - '/root/zfile-pro/file:/data/file'
+ image: swr.ap-southeast-1.myhuaweicloud.com/zfile-dev/zfile:latest
+```
+
+
+
+
### 配置文件映射 {#config2}
@@ -98,6 +199,26 @@ curl -k -o /root/application.properties https://c.jun6.net/ZFILE-PRO/application
> 提示: 启动容器后无法修改文件映射,需先 `docker rm -f zfile-pro` 删除容器,再重新运行命令.
+
+
+```yml showLineNumbers {12}
+version: '3.3'
+services:
+ zfile:
+ container_name: zfile-pro
+ restart: always
+ ports:
+ - '8080:8080'
+ volumes:
+ - '/root/zfile-pro/db:/root/.zfile-v4/db'
+ - '/root/zfile-pro/logs:/root/.zfile-v4/logs'
+ - '/root/zfile-pro/file:/data/file'
+ - '/root/application.properties:/root/application.properties'
+ image: zhaojun1998/zfile-pro:latest
+```
+
+
+
```yml showLineNumbers {12}
version: '3.3'
services:
@@ -111,8 +232,29 @@ services:
- '/root/zfile-pro/logs:/root/.zfile-v4/logs'
- '/root/zfile-pro/file:/data/file'
- '/root/application.properties:/root/application.properties'
- image: zhaojun1998/zfile-pro
+ image: swr.cn-north-1.myhuaweicloud.com/zfile-dev/zfile:latest
```
+
+
+
+```yml showLineNumbers {12}
+version: '3.3'
+services:
+ zfile:
+ container_name: zfile-pro
+ restart: always
+ ports:
+ - '8080:8080'
+ volumes:
+ - '/root/zfile-pro/db:/root/.zfile-v4/db'
+ - '/root/zfile-pro/logs:/root/.zfile-v4/logs'
+ - '/root/zfile-pro/file:/data/file'
+ - '/root/application.properties:/root/application.properties'
+ image: swr.ap-southeast-1.myhuaweicloud.com/zfile-dev/zfile:latest
+```
+
+
+
-----