diff --git a/backend/docker-compose.windows.yml b/backend/docker-compose.windows.yml index 33611fae..fac11db8 100644 --- a/backend/docker-compose.windows.yml +++ b/backend/docker-compose.windows.yml @@ -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 diff --git a/backend/services/authorization-service/.env.example b/backend/services/authorization-service/.env.example index 9a1cf8c1..bb06f4ee 100644 --- a/backend/services/authorization-service/.env.example +++ b/backend/services/authorization-service/.env.example @@ -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 diff --git a/backend/services/docker-compose.yml b/backend/services/docker-compose.yml index 935830b8..922e852e 100644 --- a/backend/services/docker-compose.yml +++ b/backend/services/docker-compose.yml @@ -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