将consul和traefik的配置文件按dev和prod环境分离 删除旧的单一配置文件,新增环境特定配置 更新docker-compose.yml以支持环境配置切换
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
|
|
}
|
|
} |