- 移除服务ID中的"-1"后缀以保持命名一致性 - 新增build-and-push.sh和run-services.sh部署脚本 - 添加docker-compose.aliyun.yml配置文件
20 lines
655 B
JSON
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
|
|
}
|
|
} |