fix Deployment
This commit is contained in:
@@ -91,17 +91,22 @@ logger:
|
||||
enable_performance_logging: true
|
||||
max_body_size: 10240 # 10KB
|
||||
exclude_paths: ["/health", "/metrics", "/favicon.ico", "/swagger"]
|
||||
# ===========================================
|
||||
# 🔐 JWT配置
|
||||
# ===========================================
|
||||
# JWT_SECRET 必须通过外部环境变量注入
|
||||
|
||||
# ===========================================
|
||||
# 🔐 JWT配置
|
||||
# ===========================================
|
||||
jwt:
|
||||
secret: JwT8xR4mN9vP2sL7kH3oB6yC1zA5uF0qE9tW
|
||||
|
||||
# ===========================================
|
||||
# 📊 监控配置
|
||||
# ===========================================
|
||||
monitoring:
|
||||
metrics_enabled: false # 生产环境禁用Prometheus指标收集
|
||||
metrics_port: "" # 清空metrics端口
|
||||
tracing_enabled: false # 生产环境禁用链路追踪
|
||||
tracing_endpoint: "" # 清空追踪端点
|
||||
sample_rate: 0.0 # 采样率为0
|
||||
|
||||
# ===========================================
|
||||
# 📁 存储服务配置 - 七牛云
|
||||
# ===========================================
|
||||
|
||||
@@ -19,12 +19,6 @@ services:
|
||||
- ./scripts/init.sql:/docker-entrypoint-initdb.d/init.sql
|
||||
networks:
|
||||
- tyapi-network
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U tyapi_user"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 60s
|
||||
restart: unless-stopped
|
||||
deploy:
|
||||
resources:
|
||||
|
||||
Reference in New Issue
Block a user