- 添加所有后端服务的application-docker.yml配置文件 - 添加前端fund-admin和fund-mobile的Dockerfile和nginx配置 - 更新docker-compose.yml添加前端服务 - 添加.dockerignore优化构建 - 添加deploy.sh一键部署脚本
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
# Docker 环境配置
|
|
server:
|
|
port: ${SERVER_PORT:8400}
|
|
|
|
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: FundReqHikariPool
|
|
connection-init-sql: SELECT 1
|
|
|
|
logging:
|
|
level:
|
|
com.fundplatform.req: 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
|