将docker-compose.yml中的错误注释修正为服务端口注释 将所有服务的路由规则从PathPrefix改为基于域名的Host规则 移除data-service中不再需要的路径前缀中间件配置
18 lines
477 B
JSON
18 lines
477 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-1",
|
|
"tags": [
|
|
"traefik.enable=true",
|
|
"traefik.http.routers.data-service.rule=Host(\"data.aristockai.com\")",
|
|
"traefik.http.routers.data-service.entrypoints=web"
|
|
],
|
|
"name": "data-service",
|
|
"port": 8000
|
|
}
|
|
} |