fix: 删除多余MySQL容器,改用1Panel已有MySQL(172.17.0.1:3306)
This commit is contained in:
@@ -5,9 +5,9 @@ spring:
|
||||
application:
|
||||
name: my-blog-backend
|
||||
datasource:
|
||||
url: jdbc:mysql://${DB_HOST:mysql}:${DB_PORT:3306}/${DB_NAME:my_blog}?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
|
||||
url: jdbc:mysql://${DB_HOST:172.17.0.1}:${DB_PORT:3306}/${DB_NAME:my_blog}?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true&createDatabaseIfNotExist=true
|
||||
username: ${DB_USER:root}
|
||||
password: ${DB_PASSWORD:root123456}
|
||||
password: ${DB_PASSWORD:123456}
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
hikari:
|
||||
connection-timeout: 30000
|
||||
|
||||
Reference in New Issue
Block a user