1、安装配置docker、docker-compose环境
2、安装git
3、git clone https://github.com/star7th/showdoc.git
![](http://upload-images.jianshu.io/upload_images/4798775-b7f23c3b60c3909e.png)
image.png
4、进度showdoc目录下,执行docker build -t showdoc ./
![](https://img-blog.csdnimg.cn/img_convert/68d9170d6561b653589fcf63473ddbc4.png)
image.png
5、创建showdoc.yml文件
version: '2'
services:
showdoc:
image: showdoc:latest
container_name: showdoc
restart: always
ports:
- "4999:80"
6、docker-compose -f showdoc.yml up -d
![](https://img-blog.csdnimg.cn/img_convert/7a8b07c144e31ffa724797e95f3df693.png)
image.png
7、登录:IP:4999
![](https://img-blog.csdnimg.cn/img_convert/cd8a743f2b62679914571d2376c6bf8c.png)
image.png
![](https://img-blog.csdnimg.cn/img_convert/102da0dd51cdb199dae5c88a0630cb9b.png)
image.png
![](http://upload-images.jianshu.io/upload_images/4798775-7dd4f80fec04b98d.png)
image.png