traefik for all hosts - yeah to constraints
This commit is contained in:
@@ -4,8 +4,12 @@ job "traefik" {
|
||||
type = "service"
|
||||
|
||||
group "traefik" {
|
||||
count = 1
|
||||
count = 5
|
||||
|
||||
constraint {
|
||||
operator = "distinct_hosts"
|
||||
value = "true"
|
||||
}
|
||||
network {
|
||||
port "http" {
|
||||
static = 80
|
||||
@@ -26,6 +30,10 @@ job "traefik" {
|
||||
interval = "10s"
|
||||
timeout = "2s"
|
||||
}
|
||||
tags = [
|
||||
"traefik.enable=true",
|
||||
"traefik.http.routers.traefik.rule=Host(`traefik.service.consul`)",
|
||||
]
|
||||
}
|
||||
|
||||
task "traefik" {
|
||||
Reference in New Issue
Block a user