将docker-compose.yml中的错误注释修正为服务端口注释 将所有服务的路由规则从PathPrefix改为基于域名的Host规则 移除data-service中不再需要的路径前缀中间件配置
18 lines
431 B
JSON
18 lines
431 B
JSON
{
|
|
"service": {
|
|
"address": "frontend",
|
|
"check": {
|
|
"http": "http://frontend:80/",
|
|
"interval": "10s",
|
|
"timeout": "5s"
|
|
},
|
|
"id": "frontend-1",
|
|
"tags": [
|
|
"traefik.enable=true",
|
|
"traefik.http.routers.frontend.rule=Host(\"aristockai.com\") || Host(\"www.aristockai.com\")",
|
|
"traefik.http.routers.frontend.entrypoints=web"
|
|
],
|
|
"name": "frontend",
|
|
"port": 80
|
|
}
|
|
} |