From ea93bafe7e01284d203bef61a62e1a38875a7fba Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 4 Jan 2026 03:47:00 -0800 Subject: [PATCH] fix(leaderboard): add REFERRAL_SERVICE_URL to docker-compose MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- backend/services/docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/services/docker-compose.yml b/backend/services/docker-compose.yml index 953ecf6c..b0ba6878 100644 --- a/backend/services/docker-compose.yml +++ b/backend/services/docker-compose.yml @@ -459,6 +459,9 @@ services: - KAFKA_BROKERS=kafka:29092 - KAFKA_CLIENT_ID=leaderboard-service - 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: postgres: condition: service_healthy @@ -466,6 +469,8 @@ services: condition: service_healthy kafka: condition: service_started + referral-service: + condition: service_healthy healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3007/api/health"] interval: 30s