Skip to content

Instantly share code, notes, and snippets.

@wxk6b1203
Created October 5, 2023 14:05
Show Gist options
  • Save wxk6b1203/65da441ee298e1eb579f609fe0193481 to your computer and use it in GitHub Desktop.
Save wxk6b1203/65da441ee298e1eb579f609fe0193481 to your computer and use it in GitHub Desktop.
fabio nomad HCL configuration file
job "fabio" {
datacenters = ["dc1"]
type = "system"
group "fabio" {
network {
port "lb" {
static = 9999
}
port "ui" {
static = 9998
}
}
task "fabio" {
driver = "docker"
config {
image = "fabiolb/fabio:latest"
network_mode = "host"
ports = ["lb","ui"]
args = [
#"-proxy.addr=:9999,:6379;proto=tcp,:3306;proto=tcp"
"-proxy.addr=0.0.0.0:0;proto=tcp-dynamic;refresh=5s"
]
}
resources {
cpu = 200
memory = 256
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment