job "traefik-local" { datacenters = ["homelab"] type = "service" group "traefik-local" { network { mode = "host" port "http" { static = 80 } port "https" { static = 443 } port "ssh" { static = 2222 } port "admin" { static = 9080 } } vault{ policies=["access-tables"] } task "traefik" { driver = "docker" service { name = "traefik-local" tags = ["traefik"] port = "https" } service { name = "traefik-local-admin" port = "admin" tags = [ "homer.enable=true", "homer.name=Traefik admin", "homer.subtitle=LAN", "homer.service=Platform", "homer.logo=https://upload.wikimedia.org/wikipedia/commons/1/1b/Traefik.logo.png", "homer.target=_blank", "homer.url=http://${NOMAD_ADDR_admin}", ] } config { image = "traefik" ports = [ "http", "https", "admin", "ssh" ] volumes =[ "local/traefik.toml:/etc/traefik/traefik.toml", "/mnt/diskstation/nomad/traefik/acme-local.json:/acme.json" ] } # vault{ #} env { } template{ data=<