将consul和traefik的配置文件按dev和prod环境分离 删除旧的单一配置文件,新增环境特定配置 更新docker-compose.yml以支持环境配置切换
18 lines
445 B
JSON
18 lines
445 B
JSON
{
|
|
"service": {
|
|
"address": "quant-service",
|
|
"check": {
|
|
"http": "http://quant-service:8001/health",
|
|
"interval": "10s",
|
|
"timeout": "5s"
|
|
},
|
|
"id": "quant-service-1",
|
|
"tags": [
|
|
"traefik.enable=true",
|
|
"traefik.http.routers.quant-service.rule=Host(\"quant.aristockai.com\")",
|
|
"traefik.http.routers.quant-service.entrypoints=web"
|
|
],
|
|
"name": "quant-service",
|
|
"port": 8001
|
|
}
|
|
} |