When running Fabio as a Nomad job, the Consul registration uses the ip address of the Docker bridge. So I'd like to disable this registration so I can register it in the Nomad job, but passing the command line param that should switch this has no effect.
task "fabio" {
driver = "docker"
config {
image = "magiconair/fabio"
command = "/fabio"
args = [
"-registry.consul.addr", "169.254.0.1:8500",
"-registry.consul.register.enabled", "false"
]
}
}
The different Consul address is picked up correctly, but not the registration flag.
"Registry": {
"Backend": "consul",
"Static": {
"Routes": ""
},
"File": {
"Path": ""
},
"Consul": {
"Addr": "169.254.0.1:8500",
"Scheme": "http",
"Token": "",
"KVPath": "/fabio/config",
"TagPrefix": "urlprefix-",
"Register": true,
"ServiceAddr": ":9998",
"ServiceName": "fabio",
"ServiceTags": null,
"ServiceStatus": [
"passing"
],
"CheckInterval": 1000000000,
"CheckTimeout": 3000000000
}
},
Any idea what might be going wrong here?
When running Fabio as a Nomad job, the Consul registration uses the ip address of the Docker bridge. So I'd like to disable this registration so I can register it in the Nomad job, but passing the command line param that should switch this has no effect.
The different Consul address is picked up correctly, but not the registration flag.
Any idea what might be going wrong here?