Created
October 5, 2023 14:05
-
-
Save wxk6b1203/65da441ee298e1eb579f609fe0193481 to your computer and use it in GitHub Desktop.
fabio nomad HCL configuration file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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