docker部署的sentinel 需要配置下本机IP client-ip

pull/71/head
路路路路路 4 years ago committed by Gitee
parent b73c14400c
commit 06ef93994b

@ -1,42 +1,44 @@
# Tomcat # Tomcat
server: server:
port: 8080 port: 8080
# Spring # Spring
spring: spring:
application: application:
# 应用名称 # 应用名称
name: ruoyi-gateway name: ruoyi-gateway
profiles: profiles:
# 环境配置 # 环境配置
active: dev active: dev
main: main:
allow-bean-definition-overriding: true allow-bean-definition-overriding: true
cloud: cloud:
nacos: nacos:
discovery: discovery:
# 服务注册地址 # 服务注册地址
server-addr: 127.0.0.1:8848 server-addr: 127.0.0.1:8848
config: config:
# 配置中心地址 # 配置中心地址
server-addr: 127.0.0.1:8848 server-addr: 127.0.0.1:8848
# 配置文件格式 # 配置文件格式
file-extension: yml file-extension: yml
# 共享配置 # 共享配置
shared-configs: shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
sentinel: sentinel:
# 取消控制台懒加载 # 取消控制台懒加载
eager: true eager: true
transport: transport:
# 控制台地址 # 控制台地址
dashboard: 127.0.0.1:8718 dashboard: 127.0.0.1:8718
# nacos配置持久化 # docker部署的sentinel 需要配置下本机IP client-ip
datasource: # client-ip: 127.0.0.1
ds1: # nacos配置持久化
nacos: datasource:
server-addr: 127.0.0.1:8848 ds1:
dataId: sentinel-ruoyi-gateway nacos:
groupId: DEFAULT_GROUP server-addr: 127.0.0.1:8848
data-type: json dataId: sentinel-ruoyi-gateway
rule-type: flow groupId: DEFAULT_GROUP
data-type: json
rule-type: flow

Loading…
Cancel
Save