步骤
- 下载代码
git clone https://github.com/star7th/showdoc.git
- docker 安装
cd showdoc
docker build -t showdoc ./
docker run -d --name showdoc -p 9001:80 showdoc
- nginx做反向代理
server {
listen 80;
server_name showdoc.xxx.com;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_connect_timeout 180;
proxy_read_timeout 180;
proxy_send_timeout 180;
proxy_pass http://127.0.0.1:9001/;
}
}
- reload nginx
- 浏览器访问 http://showdoc.xxx.com/install/ 安装
网友评论