fix(authorization): 配置 REWARD_SERVICE_URL 环境变量
- 在 .env.example 添加 REWARD_SERVICE_URL 配置 - 在 docker-compose.yml 添加 REWARD_SERVICE_URL 和 REWARD_SERVICE_ENABLED 环境变量 - 在 docker-compose.windows.yml 添加相同配置 - authorization-service 依赖 reward-service 启动 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
1d965cffec
commit
16a3e76588
|
|
@ -677,6 +677,8 @@ services:
|
|||
REFERRAL_SERVICE_ENABLED: "true"
|
||||
IDENTITY_SERVICE_URL: http://identity-service:3000
|
||||
IDENTITY_SERVICE_ENABLED: "true"
|
||||
REWARD_SERVICE_URL: http://reward-service:3005
|
||||
REWARD_SERVICE_ENABLED: "true"
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
|
|
@ -684,6 +686,8 @@ services:
|
|||
condition: service_healthy
|
||||
kafka:
|
||||
condition: service_healthy
|
||||
reward-service:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- rwa-network
|
||||
|
||||
|
|
|
|||
|
|
@ -22,3 +22,4 @@ JWT_EXPIRES_IN=7d
|
|||
# Service URLs
|
||||
IDENTITY_SERVICE_URL=http://localhost:3000
|
||||
REFERRAL_SERVICE_URL=http://localhost:3001
|
||||
REWARD_SERVICE_URL=http://localhost:3005
|
||||
|
|
|
|||
|
|
@ -499,6 +499,9 @@ services:
|
|||
# Identity Service - 用于获取用户信息(昵称、头像)
|
||||
- IDENTITY_SERVICE_URL=http://rwa-identity-service:3000
|
||||
- IDENTITY_SERVICE_ENABLED=true
|
||||
# Reward Service - 用于获取月度收益数据
|
||||
- REWARD_SERVICE_URL=http://rwa-reward-service:3005
|
||||
- REWARD_SERVICE_ENABLED=true
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
|
|
@ -510,6 +513,8 @@ services:
|
|||
condition: service_healthy
|
||||
identity-service:
|
||||
condition: service_healthy
|
||||
reward-service:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3009/api/v1/health"]
|
||||
interval: 30s
|
||||
|
|
|
|||
Loading…
Reference in New Issue