fix(docker): remove cyclic dependency between referral-service and authorization-service
两个服务互相调用,形成循环依赖。移除 depends_on 约束,使用 fallback 机制处理服务暂时不可用的情况。 🤖 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
1a5925494e
commit
ee9265f357
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue