2020新型肺炎疫情开源项目②:自制全球疫情动态监测面板
采用了佰阅大佬的镜像,镜像是别人打包好的


先部署检测面板
docker run -d --name=yiqing --log-opt max-size=50m --log-opt max-file=3 --restart=always baiyuetribe/code:yiqing2
查看容器IP
由于没有创建网络,nginx只能靠ip来代理了
[root@glowing-bliss-1 tmp]# docker inspect --format='{{.NetworkSettings.IPAddress}}' yiqing
172.17.0.8
nginx代理
nginx单独跑的容器,哈哈
[root@glowing-bliss-1 conf.d]# cat yiqing.uscwifi.xyz.conf
server {
listen 443 ssl;
server_name yiqing.uscwifi.xyz;
root /etc/nginx/conf.d/js_game_2048;
index index.html;
#ssl on;
ssl_certificate /etc/nginx/ssl/fullchain.cer;
ssl_certificate_key /etc/nginx/ssl/uscwifi.xyz.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
proxy_pass http://172.17.0.8:5000;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}