This commit is contained in:
Stille 2022-01-05 21:56:41 +08:00
parent 8be2827123
commit 0d81ce289d
2 changed files with 3 additions and 3 deletions

View File

@ -16,12 +16,12 @@ docker run -d --name=docsify -p 3000:3000 -v /your/docs/path:/docs stilleshan/do
### 新建项目
```shell
docker run -d --name=docsify -p 3000:3000 -v stilleshan/docsify
docker run -d --name=docsify -p 3000:3000 stilleshan/docsify
# 不挂载启动容器,初始化新文档.
docker cp docsify:/docs .
# 将容器内初始化的文档拷贝出来.
```
后续可参考上述`现有项目`方式挂载来维护写文档.
后续可参考上述`现有项目`方式挂载来维护写文档.
### docker compose
下载 [docker-compose.yml](https://raw.githubusercontent.com/stilleshan/dockerfiles/main/docsify/docker-compose.yml) 执行以下命令启动:

View File

@ -6,5 +6,5 @@ services:
ports:
- 3000:3000
volumes:
- ./your/docs/path:/docs
- /your/docs/path:/docs
restart: always