diff --git a/docker-cloud/docker-compose.yml b/docker-cloud/docker-compose.yml index f014d428..be750893 100644 --- a/docker-cloud/docker-compose.yml +++ b/docker-cloud/docker-compose.yml @@ -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: 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: 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: 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: 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: 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: 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: 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: 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: build: context: ../kicc-visual/kicc-monitor container_name: kicc-visual-monitor + network_mode: host restart: always image: kicc-monitor hostname: kicc-visual-monitor diff --git a/kicc-auth/src/main/resources/bootstrap.yml b/kicc-auth/src/main/resources/bootstrap.yml index 8f2e80d3..c6f452ed 100644 --- a/kicc-auth/src/main/resources/bootstrap.yml +++ b/kicc-auth/src/main/resources/bootstrap.yml @@ -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}