job "traefik" { type = "service" group "traefik" { count = 1 network { port "http" { static = 80 } port "https" { static = 443 } } volume "certs" { type = "host" source = "ca-certificates" } task "traefik" { driver = "docker" config { image = "traefik:v3.0" network_mode = "host" volumes = [ "local/traefik.toml:/etc/traefik/traefik.toml", "local/nomad-agent-ca.pem:/etc/traefik/nomad-agent-ca.pem", "local/dynamic-conf.yaml:/etc/traefik/dynamic-conf.yaml" ] } volume_mount { volume = "certs" destination = "/certificates" } template { data = <