Docker部署sentinel dashboard

下载

sentinel-dashboard-1.8.0

创建Dockfile

FROM openjdk:8-jre-slim
COPY sentinel-dashboard-1.8.0.jar sentinel-dashboard.jar
ENV JAVA_OPTS="
-Dserver.port=80
-Dcsp.sentinel.dashboard.server=localhost:80
-Dsentinel.dashboard.auth.username=sentinel
-Dsentinel.dashboard.auth.password=123456"
ENTRYPOINT java ${JAVA_OPTS} -jar sentinel-dashboard.jar

构建镜像

docker build -t sentinel-dashboard:1.8.0 .

运行容器

docker run --name sentinel -d -p 80:80 sentinel-dashboard:1.8.0

posted on 2022-04-11 22:39  路过君  阅读(300)  评论(0编辑  收藏  举报

导航