Skip to content

mkdocs-material Docker部署

环境

CentOS7+Docker+Nginx+mkdocs-material

安装命令

mkdir linux.jiaozn.com

cd linux.jiaozn.com

docker pull squidfunk/mkdocs-material

docker run --rm -it -v ${PWD}:/docs squidfunk/mkdocs-material new .

docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material &

配置

nginx 反向代理 8000端口即可。

参考网址

https://squidfunk.github.io/mkdocs-material/getting-started/