job "traefik-cloudflare-v2" { datacenters = ["dc1"] type = "service" group "traefik" { count = 1 constraint { attribute = "${node.unique.name}" value = "hcp1" } volume "traefik-certs" { type = "host" read_only = false source = "traefik-certs" } network { mode = "host" port "http" { static = 80 } port "https" { static = 443 } port "traefik" { static = 8080 } } task "traefik" { driver = "exec" config { command = "/usr/local/bin/traefik" args = [ "--configfile=/local/traefik.yml" ] } volume_mount { volume = "traefik-certs" destination = "/opt/traefik/certs" read_only = false } template { data = <