v2.1 docker 信息更新

pull/814/head
gsw945 2022-07-25 13:40:16 +08:00
parent b833698978
commit 5a9d097344
2 changed files with 9 additions and 4 deletions

View File

@ -132,13 +132,13 @@ MINDOC_ENABLE_EXPORT 开启导出(默认为false)
##### Windows
```bash
set MINDOC=//d/mindoc
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
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
```
##### Linux、Mac
```bash
export MINDOC=/home/ubuntu/mindoc-docker
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
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
```
##### 举个栗子-更多环境变量示例(镜像已过期,仅供参考,请以当前镜像为准)

View File

@ -1,14 +1,19 @@
version: "3"
services:
mindoc:
image: registry.cn-hangzhou.aliyuncs.com/mindoc-org/mindoc:v2.1-beta.6
image: registry.cn-hangzhou.aliyuncs.com/mindoc-org/mindoc:v2.1
container_name: mindoc
privileged: false
restart: always
ports:
- 8181:8181
volumes:
- /var/www/mindoc://mindoc-sync-host
- /var/www/mindoc/conf://mindoc/conf
- /var/www/mindoc/static://mindoc/static
- /var/www/mindoc/views://mindoc/views
- /var/www/mindoc/uploads://mindoc/uploads
- /var/www/mindoc/runtime://mindoc/runtime
- /var/www/mindoc/database://mindoc/database
environment:
- MINDOC_RUN_MODE=prod
- MINDOC_DB_ADAPTER=sqlite3