静态化迁移

This commit is contained in:
结发受长生 2018-07-02 14:48:07 +08:00
parent fffaf2d9d6
commit 0a7f7b7f08
2 changed files with 6 additions and 4 deletions

View File

@ -90,7 +90,7 @@ baidusitemap:
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repo: https://git.coding.net/sookie2010/sookie2010.coding.me.git
repo: ssh://git@www.colorfulsweet.site:28280/git-repo/blog.git
branch: master
jsonContent:

View File

@ -29,7 +29,8 @@ docker run \
--rm \
--name testnginx \
--volume "/test/html":/usr/share/nginx/html \
-p 8080:80
-p 8080:80 \
nginx:latest
```
+ volume是本地目录与容器内目录的映射, 前面是本地目录, 后面是容器内目录
也可以使用`mount`参数
@ -118,8 +119,9 @@ docker run \
--name testnginx \
--volume "/test/html":/usr/share/nginx/html \
--volume "/test/conf":/etc/nginx \
-p 8080:80
-p 8443:443
-p 8080:80 \
-p 8443:443 \
nginx:latest
```
> 这里容器内程序启动占用的端口取决于配置, 如果有修改, 端口映射需要对应