Docker 安装 sentinel
1、拉取
[root@Tseng ~]# docker pull bladex/sentinel-dashboard
Using default tag: latest
latest: Pulling from bladex/sentinel-dashboard
4abcf2066143: Pull complete
1ec1e81da383: Pull complete
56bccb36a894: Pull complete
7cc80011dc6f: Pull complete
4f4fb700ef54: Pull complete
8ec3e11abb52: Pull complete
Digest: sha256:2cfa70f8f5aacf4631ee6320d35427243f88792bd203fe5b9b44df1ffbc6214b
Status: Downloaded newer image for bladex/sentinel-dashboard:latest
[root@Tseng ~]#
2、启动容器
[root@Tseng ~]# docker run --name=sentinel -d -p 8719:8719 -p 8868:8858 --restart=always bladex/sentinel-dashboard
26c65e397d2ec0d5fc27cb40e778a68b2b071c1a90a1525dd8df289c8e8ab53f
[root@Tseng ~]#
3、关闭自动启动
[root@Tseng ~]# docker update --restart=no 26c6
26c6
[root@Tseng ~]#
4、配置Nginx
server {
listen 80;
server_name sentinel.vr.com;
location / {
client_max_body_size 100m;
proxy_pass http://192.168.2.81:8868;
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;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-NginX-Proxy true;
}
}
5、登录,默认用户/密码 :sentinel
原文地址:https://blog.csdn.net/piaomiao_/article/details/144422148
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!