job "traefik" { datacenters = ["alo"] group "lbs" { network { port "http" { static = "80" } port "https" { static = "443" } port "admin" { #host_network = "tailscale" static = "9002" } } volume "config-volume" { type = "csi" source = "config-volume" access_mode = "single-node-writer" attachment_mode = "file-system" } task "traefik" { driver = "docker" service { name = "traefik" port = "https" tags = [ "traefik.enable=true", "traefik.http.routers.api.entryPoints=websecure", "traefik.http.routers.api.rule=Host(`traefik.v.paler.net`)", "traefik.http.routers.api.service=api@internal", ] check { type = "http" port = "admin" path = "/ping" interval = "10s" timeout = "2s" } } service { name = "traefik-admin" port = "admin" tags = [ "metrics" ] } volume_mount { volume = "config-volume" destination = "/config" } config { image = "traefik:latest" ports = ["http", "https", "admin"] network_mode = "host" volumes = [ "local/traefik.yml:/etc/traefik/traefik.yml", ] } template { data = <