⬆️ nacos-server 2.3.2

This commit is contained in:
冷冷 2024-05-20 23:13:55 +08:00
parent 093cbb9872
commit d20757034d
3 changed files with 8 additions and 8 deletions

View File

@ -9,15 +9,15 @@ services:
restart: always restart: always
container_name: pig-mysql container_name: pig-mysql
image: pig-mysql image: pig-mysql
# ports: ports:
# - 3306:3306 - 33306:3306
networks: networks:
- spring_cloud_default - spring_cloud_default
pig-redis: pig-redis:
image: redis:7.2.4 image: redis:7.2.4
# ports: ports:
# - 6379:6379 - 36379:6379
restart: always restart: always
container_name: pig-redis container_name: pig-redis
hostname: pig-redis hostname: pig-redis

View File

@ -30,11 +30,11 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@Slf4j @Slf4j
@EnableScheduling @EnableScheduling
@SpringBootApplication @SpringBootApplication
public class PigxNacosApplication { public class PigNacosApplication {
public static void main(String[] args) { public static void main(String[] args) {
if (initEnv()) { if (initEnv()) {
SpringApplication.run(PigxNacosApplication.class, args); SpringApplication.run(PigNacosApplication.class, args);
} }
} }

View File

@ -9,7 +9,7 @@ db:
user: ${MYSQL_USER:root} user: ${MYSQL_USER:root}
password: ${MYSQL_PWD:root} password: ${MYSQL_PWD:root}
url: url:
0: jdbc:mysql://${MYSQL_HOST:pigx-mysql}:${MYSQL_PORT:3306}/${MYSQL_DB:pigxx_config}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true 0: jdbc:mysql://${MYSQL_HOST:pig-mysql}:${MYSQL_PORT:3306}/${MYSQL_DB:pig_config}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
pool: pool:
config: config:
connectionTimeout: 30000 connectionTimeout: 30000
@ -36,7 +36,7 @@ spring:
boot: # 接入 spring boot admin boot: # 接入 spring boot admin
admin: admin:
client: client:
url: http://pigx-monitor:5001 url: http://pig-monitor:5001
username: pig username: pig
password: pig password: pig
instance: instance: