Browse Source

🚀 配置nacos

master
wangxiang 2 years ago
parent
commit
bbe08ac67d
  1. 10
      docker-cloud/docker-compose.yml
  2. 3
      kicc-auth/src/main/resources/bootstrap.yml

10
docker-cloud/docker-compose.yml

@ -43,6 +43,7 @@ services: @@ -43,6 +43,7 @@ services:
build:
context: ../kicc-gateway
container_name: kicc-gateway
network_mode: host
image: kicc-gateway
hostname: kicc-gateway
restart: always
@ -54,6 +55,7 @@ services: @@ -54,6 +55,7 @@ services:
build:
context: ../kicc-auth
container_name: kicc-auth
network_mode: host
environment:
GATEWAY_HOST: 192.168.3.10
image: kicc-auth
@ -67,6 +69,7 @@ services: @@ -67,6 +69,7 @@ services:
build:
context: ../kicc-platform/kicc-platform-biz/kicc-system-biz
container_name: kicc-system
network_mode: host
environment:
GATEWAY_HOST: 192.168.3.10
image: kicc-system-biz
@ -80,6 +83,7 @@ services: @@ -80,6 +83,7 @@ services:
build:
context: ../kicc-platform/kicc-platform-biz/kicc-common-biz
container_name: kicc-common
network_mode: host
environment:
GATEWAY_HOST: 192.168.3.10
image: kicc-common-biz
@ -93,6 +97,7 @@ services: @@ -93,6 +97,7 @@ services:
build:
context: ../kicc-platform/kicc-platform-biz/kicc-monitor-biz
container_name: kicc-monitor
network_mode: host
environment:
GATEWAY_HOST: 192.168.3.10
image: kicc-monitor-biz
@ -108,6 +113,7 @@ services: @@ -108,6 +113,7 @@ services:
build:
context: ../kicc-platform/kicc-platform-biz/kicc-template-biz
container_name: kicc-template
network_mode: host
image: kicc-template-biz
hostname: kicc-template
restart: always
@ -119,6 +125,7 @@ services: @@ -119,6 +125,7 @@ services:
build:
context: ../kicc-visual/kicc-rocketmq-dashboard
container_name: kicc-visual-rocketmq
network_mode: host
image: kicc-rocketmq-dashboard
hostname: kicc-visual-rocketmq
restart: always
@ -130,6 +137,7 @@ services: @@ -130,6 +137,7 @@ services:
build:
context: ../kicc-visual/kicc-sentinel-dashboard
container_name: kicc-visual-sentinel
network_mode: host
image: kicc-sentinel-dashboard
hostname: kicc-visual-sentinel
restart: always
@ -141,6 +149,7 @@ services: @@ -141,6 +149,7 @@ services:
build:
context: ../kicc-visual/kicc-xxl-job-admin
container_name: kicc-visual-job
network_mode: host
image: kicc-xxl-job-admin
hostname: kicc-visual-job
restart: always
@ -152,6 +161,7 @@ services: @@ -152,6 +161,7 @@ services:
build:
context: ../kicc-visual/kicc-monitor
container_name: kicc-visual-monitor
network_mode: host
restart: always
image: kicc-monitor
hostname: kicc-visual-monitor

3
kicc-auth/src/main/resources/bootstrap.yml

@ -7,7 +7,8 @@ spring: @@ -7,7 +7,8 @@ spring:
cloud:
nacos:
discovery:
server-addr: ${NACOS_HOST:kicc-register}:${NACOS_PORT:8848}
server-addr: ${NACOS_HOST:192.168.3.10}:${NACOS_PORT:8848}
#server-addr: ${NACOS_HOST:kicc-register}:${NACOS_PORT:8848}
namespace: @profiles.namespace@
config:
server-addr: ${spring.cloud.nacos.discovery.server-addr}

Loading…
Cancel
Save