将consul和traefik的配置文件按dev和prod环境分离 删除旧的单一配置文件,新增环境特定配置 更新docker-compose.yml以支持环境配置切换
21 lines
440 B
JSON
21 lines
440 B
JSON
{
|
|
"service": {
|
|
"name": "whoami",
|
|
"tags": [
|
|
"traefik.enable=true",
|
|
"traefik.http.routers.whoami.entrypoints=web",
|
|
"traefik.http.routers.whoami.rule=Path(\"/whoami\")",
|
|
"traefik.http.services.whoami.loadbalancer.server.port=80"
|
|
],
|
|
"address": "whoami",
|
|
"port": 80,
|
|
"checks": [
|
|
{
|
|
"http": "http://whoami:80/",
|
|
"interval": "10s",
|
|
"timeout": "2s"
|
|
}
|
|
]
|
|
}
|
|
}
|