- 将数据库从MongoDB迁移至PostgreSQL,更新连接配置和环境变量 - 引入MQTT协议支持,配置NanoMQ作为消息代理并添加管理API - 添加审计服务前端部署,使用nginx托管Web界面 - 配置JWT鉴权和SSO集成,添加健康检查探针 - 更新共享基础设施模板以支持audit-nanomq服务 - 调整端口号从5600至5900,增加并发消费队列配置
49 lines
959 B
YAML
49 lines
959 B
YAML
registry: 192.168.1.105:8888/mixingx
|
|
tag: latest
|
|
timezone: Asia/Shanghai
|
|
|
|
sharedInfra:
|
|
postgres:
|
|
image: docker.io/library/postgres:17
|
|
username: postgres
|
|
password: "Admin12345"
|
|
port: 5432
|
|
otlp:
|
|
endpoint: http://k8s-dashboard-service:18889
|
|
protocol: grpc
|
|
|
|
audit:
|
|
enabled: true
|
|
port: 5900
|
|
replicas: 2
|
|
database: audit-db
|
|
pgStorage: 5Gi
|
|
# MQTT broker (中心 Audit NanoMQ)
|
|
mqtt:
|
|
brokerHost: "audit-nanomq-service"
|
|
brokerPort: 1883
|
|
managementPort: 8081
|
|
managementUsername: "admin"
|
|
managementPassword: "public"
|
|
# JWT 鉴权(通过 SSO JWKS)
|
|
jwt:
|
|
issuer: "mixingx-sso"
|
|
audience: "mixingx-audit"
|
|
# 消费队列/并发配置
|
|
consume:
|
|
queueCapacity: 128
|
|
queueMaxWaitMs: 5000
|
|
dbWriteTimeoutMs: 3000
|
|
concurrency: 4
|
|
|
|
images:
|
|
audit:
|
|
repository: audit
|
|
tag: ""
|
|
|
|
tier:
|
|
enabled: false
|
|
nodeLabel: mixingx.io/tier
|
|
services:
|
|
audit: { mode: required, tiers: [infra] }
|