AriStockAI/consul/config/prod/quant-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
674 B
JSON

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