File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -132,13 +132,13 @@ MINDOC_ENABLE_EXPORT 开启导出(默认为false)
132
132
##### Windows
133
133
``` bash
134
134
set MINDOC=//d/mindoc
135
- docker run -it --name=mindoc --restart=always -v " %MINDOC%" :" /mindoc-sync-host " -p 8181:8181 -e MINDOC_ENABLE_EXPORT=true -d registry.cn-hangzhou.aliyuncs.com/mindoc-org/mindoc:v2.1-beta.6
135
+ docker run -it --name=mindoc --restart=always -v " %MINDOC%/conf " :" /mindoc/conf " -p 8181:8181 -e MINDOC_ENABLE_EXPORT=true -d registry.cn-hangzhou.aliyuncs.com/mindoc-org/mindoc:v2.1
136
136
```
137
137
138
138
##### Linux、Mac
139
139
``` bash
140
140
export MINDOC=/home/ubuntu/mindoc-docker
141
- docker run -it --name=mindoc --restart=always -v " ${MINDOC} " :" /mindoc-sync-host " -p 8181:8181 -e MINDOC_ENABLE_EXPORT=true -d registry.cn-hangzhou.aliyuncs.com/mindoc-org/mindoc:v2.1-beta.6
141
+ docker run -it --name=mindoc --restart=always -v " ${MINDOC} /conf " :" /mindoc/conf " -p 8181:8181 -e MINDOC_ENABLE_EXPORT=true -d registry.cn-hangzhou.aliyuncs.com/mindoc-org/mindoc:v2.1
142
142
```
143
143
144
144
##### 举个栗子-更多环境变量示例(镜像已过期,仅供参考,请以当前镜像为准)
Original file line number Diff line number Diff line change 1
1
version : " 3"
2
2
services :
3
3
mindoc :
4
- image : registry.cn-hangzhou.aliyuncs.com/mindoc-org/mindoc:v2.1-beta.6
4
+ image : registry.cn-hangzhou.aliyuncs.com/mindoc-org/mindoc:v2.1
5
5
container_name : mindoc
6
6
privileged : false
7
7
restart : always
8
8
ports :
9
9
- 8181:8181
10
10
volumes :
11
- - /var/www/mindoc://mindoc-sync-host
11
+ - /var/www/mindoc/conf://mindoc/conf
12
+ - /var/www/mindoc/static://mindoc/static
13
+ - /var/www/mindoc/views://mindoc/views
14
+ - /var/www/mindoc/uploads://mindoc/uploads
15
+ - /var/www/mindoc/runtime://mindoc/runtime
16
+ - /var/www/mindoc/database://mindoc/database
12
17
environment :
13
18
- MINDOC_RUN_MODE=prod
14
19
- MINDOC_DB_ADAPTER=sqlite3
You can’t perform that action at this time.
0 commit comments