Docker部署sentinel dashboard
下载
创建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