2019-03-08 17:56:02 +00:00
|
|
|
job "fabio" {
|
|
|
|
datacenters = ["dc1", "dc2"]
|
2019-10-11 12:00:05 +00:00
|
|
|
type = "system"
|
2019-03-08 17:56:02 +00:00
|
|
|
|
2019-11-25 18:31:00 +00:00
|
|
|
constraint {
|
|
|
|
attribute = "${attr.kernel.name}"
|
|
|
|
value = "linux"
|
|
|
|
}
|
|
|
|
|
2019-03-08 17:56:02 +00:00
|
|
|
group "fabio" {
|
2020-09-14 17:00:55 +00:00
|
|
|
network {
|
|
|
|
port "lb" {
|
|
|
|
static = 9999
|
|
|
|
}
|
|
|
|
|
|
|
|
port "ui" {
|
|
|
|
static = 9998
|
|
|
|
}
|
|
|
|
}
|
2019-03-08 17:56:02 +00:00
|
|
|
task "fabio" {
|
|
|
|
driver = "docker"
|
2019-10-11 12:00:05 +00:00
|
|
|
|
2019-03-08 17:56:02 +00:00
|
|
|
config {
|
2019-10-11 12:00:05 +00:00
|
|
|
image = "fabiolb/fabio"
|
2019-03-08 17:56:02 +00:00
|
|
|
network_mode = "host"
|
|
|
|
}
|
|
|
|
|
|
|
|
resources {
|
|
|
|
cpu = 100
|
|
|
|
memory = 64
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|