fix(leaderboard): add REFERRAL_SERVICE_URL to docker-compose
The leaderboard-service needs to connect to referral-service for team statistics data. Without this environment variable, it falls back to localhost:3004 which fails inside Docker network. 🤖 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
0d14cc2197
commit
ea93bafe7e
|
|
@ -459,6 +459,9 @@ services:
|
||||||
- KAFKA_BROKERS=kafka:29092
|
- KAFKA_BROKERS=kafka:29092
|
||||||
- KAFKA_CLIENT_ID=leaderboard-service
|
- KAFKA_CLIENT_ID=leaderboard-service
|
||||||
- KAFKA_GROUP_ID=leaderboard-service-group
|
- KAFKA_GROUP_ID=leaderboard-service-group
|
||||||
|
# External Service URLs
|
||||||
|
- REFERRAL_SERVICE_URL=http://rwa-referral-service:3004
|
||||||
|
- IDENTITY_SERVICE_URL=http://rwa-identity-service:3000
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
@ -466,6 +469,8 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
kafka:
|
kafka:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
|
referral-service:
|
||||||
|
condition: service_healthy
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:3007/api/health"]
|
test: ["CMD", "curl", "-f", "http://localhost:3007/api/health"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue