job "traefik" { region = "global" datacenters = ["nummer5"] type = "system" node_pool = "all" group "traefik" { #count = 5 constraint { operator = "distinct_hosts" value = "true" } network { port "http" { static = 80 } port "api" { static = 81 } } service { name = "traefik" port = "api" check { name = "alive" type = "tcp" port = "http" interval = "120s" timeout = "2s" } check { name = "alive" type = "tcp" port = "api" interval = "120s" timeout = "2s" } tags = [ "traefik.enable=true", "traefik.http.routers.traefik.rule=Host(`traefik.service.nr5`)", ] } task "traefik" { driver = "podman" config { image = "docker.io/library/traefik:latest" network_mode = "host" volumes = [ "local/traefik.toml:/etc/traefik/traefik.toml", ] } template { data = <