Commit 26fa5390 authored by 332784038@qq.com's avatar 332784038@qq.com

环境切换地址

parent 004e49d3
version: '3' version: '3'
services: services:
sit-api-jiedao: dev-api-jiedao:
image: harbor.jiedao.com/sit-api-jiedao:latest image: harbor.jiedao.com/dev-api-jiedao:latest
container_name: sit-api-jiedao container_name: dev-api-jiedao
ports: ports:
- "8001:9001" - "8001:9001"
environment: environment:
env: sit env: dev
volumes: volumes:
- '/etc/localtime:/etc/localtime' - '/etc/localtime:/etc/localtime'
- '/data/docker/apps/jiedao/sit/api/logs/operator:/logs' - '/data/docker/apps/jiedao/dev/api/logs/operator:/logs'
- '/data/docker/apps/jiedao/sit/static:/app/static' - '/data/docker/apps/jiedao/dev/static:/app/static'
- '/data/docker/apps/jiedao/sit/fonts/zh:/usr/share/fonts/zh' - '/data/docker/apps/jiedao/dev/fonts/zh:/usr/share/fonts/zh'
restart: always restart: always
ulimits: ulimits:
nproc: 65535 nproc: 65535
......
...@@ -46,31 +46,31 @@ spring: ...@@ -46,31 +46,31 @@ spring:
datasource: datasource:
master: master:
name: jiedao name: jiedao
url: jdbc:mysql://110.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://172.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 driver-class-name: com.mysql.cj.jdbc.Driver
username: root username: jiedao
password: mysql@2024 password: JIedao2024
slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改 slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
name: jiedao name: jiedao
url: jdbc:mysql://110.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://172.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 driver-class-name: com.mysql.cj.jdbc.Driver
username: root username: jiedao
password: mysql@2024 password: JIedao2024
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
redis: redis:
host: 159.75.224.138 # 地址 host: 172.16.0.3 # 地址
port: 2291 # 端口 port: 2291 # 端口
database: 0 # 数据库索引 database: 0 # 数据库索引
password: redis@2022 password: Redis2024
timeout: 60s timeout: 60s
connect-timeout: 60s connect-timeout: 60s
redis-limiter: redis-limiter:
redis-host: 159.75.224.138 # redis server IP 默认值:127.0.0.1 redis-host: 172.16.0.3 # redis server IP 默认值:127.0.0.1
redis-port: 2291 # redis service 端口 默认值:6379 redis-port: 2291 # redis service 端口 默认值:6379
redis-db: 4 # redis service 数据库 默认值:6379 redis-db: 0 # redis service 数据库 默认值:6379
redis-password: redis@2022 # redis 访问密码 默认值:null redis-password: Redis2024 # redis 访问密码 默认值:null
redis-connection-timeout: 2000 # redis 连接超时时间 默认值:2000 redis-connection-timeout: 2000 # redis 连接超时时间 默认值:2000
redis-pool-max-idle: 50 # redis 连接池最大空闲连接数 默认值:50 redis-pool-max-idle: 50 # redis 连接池最大空闲连接数 默认值:50
redis-pool-min-idle: 10 # redis 连接池最小空闲连接数 默认值: 10 redis-pool-min-idle: 10 # redis 连接池最小空闲连接数 默认值: 10
......
...@@ -43,31 +43,31 @@ spring: ...@@ -43,31 +43,31 @@ spring:
datasource: datasource:
master: master:
name: jiedao01 name: jiedao01
url: jdbc:mysql://10.10.0.13: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://172.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 driver-class-name: com.mysql.cj.jdbc.Driver
username: root username: jd
password: mysql@2022 password: Jd2024
slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改 slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
name: jiedao01 name: jd
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 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 driver-class-name: com.mysql.cj.jdbc.Driver
username: root username: jd
password: mysql@2022 password: Jd2024
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
redis: redis:
host: 10.10.0.4 # 地址 host: 172.16.0.3 # 地址
port: 6379 # 端口 port: 6379 # 端口
database: 0 # 数据库索引 database: 1 # 数据库索引
password: redis@2022 password: Redis2024
timeout: 60s timeout: 60s
connect-timeout: 60s connect-timeout: 60s
redis-limiter: redis-limiter:
redis-host: 10.10.0.4 # redis server IP 默认值:127.0.0.1 redis-host: 172.16.0.3 # redis server IP 默认值:127.0.0.1
redis-port: 6379 # redis service 端口 默认值:6379 redis-port: 6379 # redis service 端口 默认值:6379
redis-db: 1 # 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-connection-timeout: 2000 # redis 连接超时时间 默认值:2000
redis-pool-max-idle: 50 # redis 连接池最大空闲连接数 默认值:50 redis-pool-max-idle: 50 # redis 连接池最大空闲连接数 默认值:50
redis-pool-min-idle: 10 # redis 连接池最小空闲连接数 默认值: 10 redis-pool-min-idle: 10 # redis 连接池最小空闲连接数 默认值: 10
......
...@@ -43,13 +43,13 @@ spring: ...@@ -43,13 +43,13 @@ spring:
datasource: datasource:
master: master:
name: jiedao name: jiedao
url: jdbc:mysql://10.10.0.100: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.20: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 driver-class-name: com.mysql.cj.jdbc.Driver
username: root username: root
password: mysql@2022 password: mysql@2022
slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改 slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
name: jiedao name: jiedao
url: jdbc:mysql://10.10.0.100: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.20: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 driver-class-name: com.mysql.cj.jdbc.Driver
username: root username: root
password: mysql@2022 password: mysql@2022
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment