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

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

@ -7,7 +7,8 @@ spring:
cloud: cloud:
nacos: nacos:
discovery: 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@ namespace: @profiles.namespace@
config: config:
server-addr: ${spring.cloud.nacos.discovery.server-addr} server-addr: ${spring.cloud.nacos.discovery.server-addr}

Loading…
Cancel
Save