美文网首页
docker-compose安装部署sentinel-dashb

docker-compose安装部署sentinel-dashb

作者: 棉花糖716 | 来源:发表于2020-08-22 09:51 被阅读0次

1、创建sentinel-docker目录

mkdir sentinel-docker

2、创建sentinel.yml文件

version: '3'
services:
  sentinel-dashboard:
    image: bladex/sentinel-dashboard
    container_name: sentinel-dashboard
    restart: always
    environment:
      JAVA_OPTS: "-Dserver.port=8858 -Dcsp.sentinel.dashboard.server=localhost:8858 -Dproject.name=sentinel-dashboard"
    ports: #避免出现端口映射错误,建议采用字符串格式 8080端口为Dockerfile中EXPOSE端口
      - "8858:8858"
    volumes:
      - ./root/logs:/root/logs

3、执行安装部署

docker-compose -f sentinel.yml up -d

4、访问web

创建成功后,可通过访问localhost:58080访问sentinel-dashboard的web界面。至此,sentinel-dashboard安装完成。

相关文章

网友评论

      本文标题:docker-compose安装部署sentinel-dashb

      本文链接:https://www.haomeiwen.com/subject/eyomjktx.html