update: 更正集群模式下部署nacos版本2.0+情况下的暴露端口

This commit is contained in:
mroldx 2023-03-11 17:36:59 +08:00
parent ca624f2452
commit 048a2a4f16
4 changed files with 14 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#nacos dev env
PREFER_HOST_MODE=hostname
EMBEDDED_STORAGE=embedded
NACOS_SERVERS=nacos1:8848 nacos2:8848 nacos3:8848
NACOS_SERVERS=nacos1:8848 nacos2:8849 nacos3:8850
MYSQL_SERVICE_DB_NAME=nacos_devtest
MYSQL_SERVICE_PORT=3306
MYSQL_SERVICE_USER=nacos

View File

@ -1,6 +1,6 @@
#nacos dev env
PREFER_HOST_MODE=hostname
NACOS_SERVERS=nacos1:8848 nacos2:8848 nacos3:8848
NACOS_SERVERS=nacos1:8848 nacos2:8849 nacos3:8850
MYSQL_SERVICE_HOST=mysql
MYSQL_SERVICE_DB_NAME=nacos_devtest
MYSQL_SERVICE_PORT=3306

View File

@ -7,9 +7,10 @@ services:
volumes:
- ./cluster-logs/nacos1:/home/nacos/logs
ports:
- "7848:7848"
- "8848:8848"
- "9848:9848"
- "9555:9555"
- "9849:9849"
env_file:
- ../env/nacos-embedded.env
restart: always
@ -21,8 +22,10 @@ services:
volumes:
- ./cluster-logs/nacos2:/home/nacos/logs
ports:
- "7849:7848"
- "8849:8848"
- "9849:9848"
- "9850:9849"
env_file:
- ../env/nacos-embedded.env
restart: always
@ -33,8 +36,10 @@ services:
volumes:
- ./cluster-logs/nacos3:/home/nacos/logs
ports:
- "7850:7848"
- "8850:8848"
- "9850:9848"
- "9851:9849"
env_file:
- ../env/nacos-embedded.env
restart: always

View File

@ -7,9 +7,10 @@ services:
volumes:
- ./cluster-logs/nacos1:/home/nacos/logs
ports:
- "7848:7848"
- "8848:8848"
- "9848:9848"
- "9555:9555"
- "9849:9849"
env_file:
- ../env/nacos-hostname.env
restart: always
@ -24,8 +25,10 @@ services:
volumes:
- ./cluster-logs/nacos2:/home/nacos/logs
ports:
- "7849:7848"
- "8849:8848"
- "9849:9848"
- "9850:9849"
env_file:
- ../env/nacos-hostname.env
restart: always
@ -39,8 +42,10 @@ services:
volumes:
- ./cluster-logs/nacos3:/home/nacos/logs
ports:
- "7850:7848"
- "8850:8848"
- "9850:9848"
- "9851:9849"
env_file:
- ../env/nacos-hostname.env
restart: always