fix(docker): add JWT_SECRET to mining-service and trading-service

Both services were missing JWT_SECRET environment variable, causing
401 Unauthorized errors when validating JWT tokens from auth-service.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-15 17:25:55 -08:00
parent 01bd638dbb
commit 83b05ac146
1 changed files with 4 additions and 0 deletions

View File

@ -76,6 +76,8 @@ services:
REDIS_DB: 11
# Kafka
KAFKA_BROKERS: kafka:29092
# JWT 配置 (与 auth-service 共享密钥以验证 token)
JWT_SECRET: ${JWT_SECRET:-your-jwt-secret-change-in-production}
ports:
- "3021:3021"
healthcheck:
@ -108,6 +110,8 @@ services:
KAFKA_BROKERS: kafka:29092
# 2.0 内部服务调用
MINING_SERVICE_URL: http://mining-service:3021
# JWT 配置 (与 auth-service 共享密钥以验证 token)
JWT_SECRET: ${JWT_SECRET:-your-jwt-secret-change-in-production}
ports:
- "3022:3022"
healthcheck: