# Docker 环境配置 server: port: ${SERVER_PORT:8500} spring: cloud: nacos: discovery: server-addr: ${NACOS_SERVER_ADDR:nacos:8848} namespace: fund-platform group: DEFAULT_GROUP username: ${NACOS_USERNAME:nacos} password: ${NACOS_PASSWORD:nacos} metadata: tenant-id: ${TENANT_ID:} datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://${MYSQL_HOST:mysql}:${MYSQL_PORT:3306}/${MYSQL_DB:fund_platform}?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai username: ${MYSQL_USER:root} password: ${MYSQL_PASSWORD:root123} hikari: maximum-pool-size: 20 minimum-idle: 5 connection-timeout: 30000 idle-timeout: 600000 max-lifetime: 1800000 validation-timeout: 5000 leak-detection-threshold: 60000 pool-name: FundExpHikariPool connection-init-sql: SELECT 1 logging: level: com.fundplatform.exp: INFO management: endpoints: web: exposure: include: health,info,metrics,prometheus endpoint: health: show-details: when_authorized tenant: routing: enabled: true tenant-header: X-Tenant-Id default-tenant-id: "1" fallback-to-shared: true