采用阿里巴巴 sentinel 控制台 最新版本 基于openjdk:8-jre 使用 https://github.com/alibaba/Sentinel/releases 提供的jar
注意使用hb0730/alibaba-sentinel:1.70 + 镜像必须挂载application.properties,否则启动失败
version: '3.1'
services:
sentinel:
image: hb0730/alibaba-sentinel
restart: always
container_name: sentinel
volumes:
- ./logs:/root/logs
- ./config:/home/sentinel/config
ports:
- '8408:8080'
#spring settings
spring.http.encoding.force=true
spring.http.encoding.charset=UTF-8
spring.http.encoding.enabled=true
#logging settings
logging.level.org.springframework.web=INFO
logging.file=${user.home}/logs/csp/sentinel-dashboard.log
logging.pattern.file= %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n
#logging.pattern.console= %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n
#auth settings
auth.filter.exclude-urls=/,/auth/login,/auth/logout,/registry/machine,/version
auth.filter.exclude-url-suffixes=htm,html,js,css,map,ico,ttf,woff,png
# If auth.enabled=false, Sentinel console disable login
auth.username=sentinel
auth.password=sentinel
# Inject the dashboard version. It's required to enable
# filtering in pom.xml for this resource file.
build.sh 有两个子命令 generate build
generate 生成Dockerfile`./build.sh generate version`
build 用于构建docker image`./build.sh build image_name file_local`
hb0730/alibaba-sentinel:1.8.2,hb0730/alibaba-sentinel:latest --> alibaba sentinel 1.8.2hb0730/alibaba-sentinel:1.8.1 --> alibaba sentinel 1.8.1hb0730/alibaba-sentinel:1.8.0 --> alibaba sentinel 1.8.0hb0730/alibaba-sentinel:1.7.2 --> alibaba sentinel 1.7.2hb0730/alibaba-sentinel:1.7.1 --> alibaba sentinel 1.7.1hb0730/alibaba-sentinel:1.7.0 --> alibaba sentinel 1.7.0
/home/sentinel/app/application.propertieshb0730/alibaba-sentinel:1.6.3 --> alibaba sentinel 1.6.3hb0730/alibaba-sentinel:1.0.0 --> alibab sentinel 1.6.2Content type
Image
Digest
Size
146.4 MB
Last updated
over 5 years ago
docker pull hb0730/alibaba-sentinel