Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
555206bf
Commit
555206bf
authored
Oct 23, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
环境切换地址
parent
6c7cc056
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
31 deletions
+31
-31
docker-compose-dev.yml
docker-compose-dev.yml
+7
-7
application-dev.yaml
yudao-server/src/main/resources/application-dev.yaml
+11
-11
application-test.yaml
yudao-server/src/main/resources/application-test.yaml
+11
-11
application-uat.yaml
yudao-server/src/main/resources/application-uat.yaml
+2
-2
No files found.
docker-compose-
sit
.yml
→
docker-compose-
dev
.yml
View file @
555206bf
version
:
'
3'
services
:
sit
-api-jiedao
:
image
:
harbor.jiedao.com/
sit
-api-jiedao:latest
container_name
:
sit
-api-jiedao
dev
-api-jiedao
:
image
:
harbor.jiedao.com/
dev
-api-jiedao:latest
container_name
:
dev
-api-jiedao
ports
:
-
"
8001:9001"
environment
:
env
:
sit
env
:
dev
volumes
:
-
'
/etc/localtime:/etc/localtime'
-
'
/data/docker/apps/jiedao/
sit
/api/logs/operator:/logs'
-
'
/data/docker/apps/jiedao/
sit
/static:/app/static'
-
'
/data/docker/apps/jiedao/
sit
/fonts/zh:/usr/share/fonts/zh'
-
'
/data/docker/apps/jiedao/
dev
/api/logs/operator:/logs'
-
'
/data/docker/apps/jiedao/
dev
/static:/app/static'
-
'
/data/docker/apps/jiedao/
dev
/fonts/zh:/usr/share/fonts/zh'
restart
:
always
ulimits
:
nproc
:
65535
...
...
yudao-server/src/main/resources/application-dev.yaml
View file @
555206bf
...
...
@@ -46,31 +46,31 @@ spring:
datasource
:
master
:
name
:
jiedao
url
:
jdbc:mysql://1
10.41.143.128
:3306/${spring.datasource.dynamic.datasource.master.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE&connectTimeout=60000
url
:
jdbc:mysql://1
72.16.0.3
:3306/${spring.datasource.dynamic.datasource.master.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE&connectTimeout=60000
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
mysql@
2024
username
:
jiedao
password
:
JIedao
2024
slave
:
# 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
name
:
jiedao
url
:
jdbc:mysql://1
10.41.143.128
:3306/${spring.datasource.dynamic.datasource.slave.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE&connectTimeout=60000
url
:
jdbc:mysql://1
72.16.0.3
:3306/${spring.datasource.dynamic.datasource.slave.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE&connectTimeout=60000
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
mysql@
2024
username
:
jiedao
password
:
JIedao
2024
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
redis
:
host
:
1
59.75.224.138
# 地址
host
:
1
72.16.0.3
# 地址
port
:
2291
# 端口
database
:
0
# 数据库索引
password
:
redis@2022
password
:
Redis2024
timeout
:
60s
connect-timeout
:
60s
redis-limiter
:
redis-host
:
1
59.75.224.138
# redis server IP 默认值:127.0.0.1
redis-host
:
1
72.16.0.3
# redis server IP 默认值:127.0.0.1
redis-port
:
2291
# redis service 端口 默认值:6379
redis-db
:
4
# redis service 数据库 默认值:6379
redis-password
:
redis@2022
# redis 访问密码 默认值:null
redis-db
:
0
# redis service 数据库 默认值:6379
redis-password
:
Redis2024
# redis 访问密码 默认值:null
redis-connection-timeout
:
2000
# redis 连接超时时间 默认值:2000
redis-pool-max-idle
:
50
# redis 连接池最大空闲连接数 默认值:50
redis-pool-min-idle
:
10
# redis 连接池最小空闲连接数 默认值: 10
...
...
yudao-server/src/main/resources/application-test.yaml
View file @
555206bf
...
...
@@ -43,31 +43,31 @@ spring:
datasource
:
master
:
name
:
jiedao01
url
:
jdbc:mysql://1
0.10.0.1
3:3306/${spring.datasource.dynamic.datasource.master.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE
url
:
jdbc:mysql://1
72.16.0.
3:3306/${spring.datasource.dynamic.datasource.master.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
mysql@2022
username
:
jd
password
:
Jd2024
slave
:
# 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
name
:
j
iedao01
name
:
j
d
url
:
jdbc:mysql://10.10.0.13:3306/${spring.datasource.dynamic.datasource.slave.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
mysql@2022
username
:
jd
password
:
Jd2024
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
redis
:
host
:
1
0.10.0.4
# 地址
host
:
1
72.16.0.3
# 地址
port
:
6379
# 端口
database
:
0
# 数据库索引
password
:
redis@2022
database
:
1
# 数据库索引
password
:
Redis2024
timeout
:
60s
connect-timeout
:
60s
redis-limiter
:
redis-host
:
1
0.10.0.4
# redis server IP 默认值:127.0.0.1
redis-host
:
1
72.16.0.3
# redis server IP 默认值:127.0.0.1
redis-port
:
6379
# redis service 端口 默认值:6379
redis-db
:
1
# redis service 数据库 默认值:6379
redis-password
:
redis@2022
# redis 访问密码 默认值:null
redis-password
:
Redis2024
# redis 访问密码 默认值:null
redis-connection-timeout
:
2000
# redis 连接超时时间 默认值:2000
redis-pool-max-idle
:
50
# redis 连接池最大空闲连接数 默认值:50
redis-pool-min-idle
:
10
# redis 连接池最小空闲连接数 默认值: 10
...
...
yudao-server/src/main/resources/application-uat.yaml
View file @
555206bf
...
...
@@ -43,13 +43,13 @@ spring:
datasource
:
master
:
name
:
jiedao
url
:
jdbc:mysql://10.10.0.
10
0:3306/${spring.datasource.dynamic.datasource.master.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE
url
:
jdbc:mysql://10.10.0.
2
0:3306/${spring.datasource.dynamic.datasource.master.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
mysql@2022
slave
:
# 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
name
:
jiedao
url
:
jdbc:mysql://10.10.0.
10
0:3306/${spring.datasource.dynamic.datasource.slave.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE
url
:
jdbc:mysql://10.10.0.
2
0:3306/${spring.datasource.dynamic.datasource.slave.name}?useUnicode=true&useSSL=true&characterEncoding=utf8&characterSetResults=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&rewriteBatchedStatements=TRUE
driver-class-name
:
com.mysql.cj.jdbc.Driver
username
:
root
password
:
mysql@2022
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment