Hello there,
I have a job running for my adguard deployment. It’s working great but I have minor problem: nomad is showing me the hosts IP instead of the static container IP I created for it - and it also registers this to consul.
My job file (condensed):
job "dns" {
group "adguard" {
count = 1
service {
tags = [ "dns", "adguard" ]
}
network {
port "dnsserver" {
static = 53
}
port "dot" {
static = 853
}
port "bootpserver" {
static = 67
}
port "http" {
static = 80
}
port "https" {
static = 443
}
port "admin" {
static = 3000
}
}
task "server" {
driver = "docker"
config {
image = "adguard/adguardhome"
ports = [
"dnsserver",
"bootpserver",
"dot",
"http",
"https",
"admin"
]
network_mode = "staticip"
ipv4_address = "192.168.0.2"
dns_servers = [ "192.168.0.1" ]
}
}
}
}
I understand why this is but is there a way to tell nomad and consul the “correct” ip?