加入sentinel控制台
This commit is contained in:
parent
5c130cfda6
commit
64ca0f5394
|
|
@ -26,7 +26,7 @@ port(){
|
||||||
|
|
||||||
# 启动基础环境(必须)
|
# 启动基础环境(必须)
|
||||||
base(){
|
base(){
|
||||||
docker-compose up -d ruoyi-mysql ruoyi-redis ruoyi-nacos ruoyi-nginx
|
docker-compose up -d ruoyi-mysql ruoyi-redis ruoyi-nacos ruoyi-nginx sentinel
|
||||||
}
|
}
|
||||||
|
|
||||||
# 启动程序模块(必须)
|
# 启动程序模块(必须)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,12 @@
|
||||||
version : '3.8'
|
version : '3.8'
|
||||||
services:
|
services:
|
||||||
|
sentinel:
|
||||||
|
container_name: sentinel
|
||||||
|
build:
|
||||||
|
context: ./sentinel
|
||||||
|
dockerfile: dockerfile
|
||||||
|
ports:
|
||||||
|
- "8718:8718"
|
||||||
ruoyi-nacos:
|
ruoyi-nacos:
|
||||||
container_name: ruoyi-nacos
|
container_name: ruoyi-nacos
|
||||||
image: nacos/nacos-server
|
image: nacos/nacos-server
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,15 @@
|
||||||
|
# 基础镜像
|
||||||
|
FROM openjdk:8-jre
|
||||||
|
# author
|
||||||
|
MAINTAINER ruoyi
|
||||||
|
|
||||||
|
# 挂载目录
|
||||||
|
VOLUME /home/ruoyi
|
||||||
|
# 创建目录
|
||||||
|
RUN mkdir -p /home/ruoyi
|
||||||
|
# 指定路径
|
||||||
|
WORKDIR /home/ruoyi
|
||||||
|
# 复制jar文件到路径
|
||||||
|
COPY ./jar/sentinel-dashboard-1.8.0.jar /home/ruoyi/sentinel-dashboard-1.8.0.jar
|
||||||
|
# 启动认证服务
|
||||||
|
ENTRYPOINT ["java","-Dserver.port=8718","-Dcsp.sentinel.dashboard.server=localhost:8718","-Dproject.name=sentinel-dashboard","-jar","sentinel-dashboard-1.8.0.jar"]
|
||||||
Binary file not shown.
Loading…
Reference in New Issue