AriStockAI/consul/config/dev/user-service.json
fanfpy f12448c7d8 refactor(consul): 统一服务ID命名并添加部署脚本
- 移除服务ID中的"-1"后缀以保持命名一致性
- 新增build-and-push.sh和run-services.sh部署脚本
- 添加docker-compose.aliyun.yml配置文件
2025-07-17 11:24:39 +08:00

20 lines
655 B
JSON

{
"service": {
"address": "user-service",
"check": {
"http": "http://user-service:8004/health",
"interval": "10s",
"timeout": "5s"
},
"id": "user-service",
"tags": [
"traefik.enable=true",
"traefik.http.routers.user-service.rule=PathPrefix(`/api/user`) || PathPrefix(`/api/auth`)",
"traefik.http.routers.user-service.entrypoints=web",
"traefik.http.middlewares.user-service-stripprefix.stripprefix.prefixes=/api/user,/api/auth",
"traefik.http.routers.user-service.middlewares=user-service-stripprefix@consulcatalog"
],
"name": "user-service",
"port": 8004
}
}