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