- 移除服务ID中的"-1"后缀以保持命名一致性 - 新增build-and-push.sh和run-services.sh部署脚本 - 添加docker-compose.aliyun.yml配置文件
21 lines
742 B
JSON
21 lines
742 B
JSON
{
|
|
"service": {
|
|
"address": "data-service",
|
|
"check": {
|
|
"http": "http://ari-data-service:8000/api/public/stock_bid_ask_em?symbol=000001",
|
|
"interval": "10s",
|
|
"timeout": "5s"
|
|
},
|
|
"id": "data-service",
|
|
"tags": [
|
|
"traefik.enable=true",
|
|
"traefik.http.routers.data-service.rule=PathPrefix(`/api/data`) || PathPrefix(`/api/public`)",
|
|
"traefik.http.routers.data-service.priority=100",
|
|
"traefik.http.routers.data-service.entrypoints=web",
|
|
"traefik.http.middlewares.data-service-stripprefix.stripprefix.prefixes=/api/data,/api/public",
|
|
"traefik.http.routers.data-service.middlewares=data-service-stripprefix@consulcatalog"
|
|
],
|
|
"name": "data-service",
|
|
"port": 8000
|
|
}
|
|
} |