diff --git a/backend/services/docker-compose.yml b/backend/services/docker-compose.yml index c51bc5cc..444251f5 100644 --- a/backend/services/docker-compose.yml +++ b/backend/services/docker-compose.yml @@ -283,8 +283,9 @@ services: condition: service_healthy kafka: condition: service_started - authorization-service: - condition: service_healthy + # 注意:不添加 authorization-service 依赖,避免循环依赖 + # referral-service <-> authorization-service 互相调用 + # 使用 fallback 机制处理服务暂时不可用的情况 healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3004/api/v1/health"] interval: 30s