2026-05-17 17:24:08 +08:00
|
|
|
# =============================================================
|
2026-05-17 19:13:01 +08:00
|
|
|
# 积分商城 Docker 部署专用 Spring profile
|
2026-05-17 17:24:08 +08:00
|
|
|
# 通过 --spring.config.additional-location=file:/config/ + --spring.profiles.active=docker
|
|
|
|
|
# 加载本文件,并由环境变量覆盖关键参数
|
|
|
|
|
# =============================================================
|
|
|
|
|
|
|
|
|
|
server:
|
2026-05-17 19:13:01 +08:00
|
|
|
port: ${SERVER_PORT:-30032}
|
2026-05-17 17:24:08 +08:00
|
|
|
|
|
|
|
|
crmeb:
|
|
|
|
|
imagePath: /usr/local/crmeb/crmebimage/
|
|
|
|
|
captchaOn: false
|
|
|
|
|
asyncConfig: true
|
|
|
|
|
demoSite: false
|
|
|
|
|
|
|
|
|
|
spring:
|
|
|
|
|
datasource:
|
|
|
|
|
name: ${MYSQL_DATABASE}
|
|
|
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
|
|
|
driver-class-name: com.mysql.jdbc.Driver
|
|
|
|
|
url: jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT:3306}/${MYSQL_DATABASE}?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false&allowPublicKeyRetrieval=true
|
|
|
|
|
username: ${MYSQL_USERNAME}
|
|
|
|
|
password: ${MYSQL_PASSWORD}
|
|
|
|
|
druid:
|
|
|
|
|
initial-size: 5
|
|
|
|
|
min-idle: 5
|
|
|
|
|
max-active: 50
|
|
|
|
|
max-wait: 60000
|
|
|
|
|
validation-query: SELECT 1
|
|
|
|
|
test-while-idle: true
|
|
|
|
|
test-on-borrow: false
|
|
|
|
|
test-on-return: false
|
|
|
|
|
redis:
|
|
|
|
|
host: ${REDIS_HOST:redis}
|
|
|
|
|
port: ${REDIS_PORT:6379}
|
|
|
|
|
password: ${REDIS_PASSWORD:}
|
|
|
|
|
database: ${REDIS_DATABASE:0}
|
|
|
|
|
timeout: 10000
|
|
|
|
|
jedis:
|
|
|
|
|
pool:
|
|
|
|
|
max-active: 200
|
|
|
|
|
max-wait: -1
|
|
|
|
|
max-idle: 10
|
|
|
|
|
min-idle: 0
|
|
|
|
|
time-between-eviction-runs: -1
|
2026-05-17 19:13:01 +08:00
|
|
|
second:
|
|
|
|
|
database: ${REDIS_SECOND_DATABASE:1}
|
2026-05-17 17:24:08 +08:00
|
|
|
|
|
|
|
|
# 订单同步(无 MER 时填默认)
|
|
|
|
|
sync:
|
|
|
|
|
source-id: ${SYNC_SOURCE_ID:}
|
|
|
|
|
target-mer-id: ${SYNC_TARGET_MER_ID:0}
|
|
|
|
|
|
|
|
|
|
logging:
|
|
|
|
|
level:
|
|
|
|
|
io.swagger.*: error
|
|
|
|
|
com.zbjk.crmeb: info
|
|
|
|
|
org.springframework.boot.autoconfigure: ERROR
|
|
|
|
|
config: classpath:logback-spring.xml
|
|
|
|
|
file:
|
|
|
|
|
path: /app/log
|
|
|
|
|
|
|
|
|
|
mybatis-plus:
|
|
|
|
|
configuration:
|
|
|
|
|
log-impl:
|
|
|
|
|
|
|
|
|
|
swagger:
|
|
|
|
|
basic:
|
|
|
|
|
enable: false
|
|
|
|
|
check: false
|