job "shlink" { datacenters = ["aperture"] type = "service" group "web" { network { port "api" { to = 8080 } port "web" { to = 8080 } } service { name = "shlink" port = "api" tags = [ "traefik.enable=true", "traefik.http.routers.shlink-api.entrypoints=web,websecure", "traefik.http.routers.shlink-api.rule=Host(`s.rb.dcu.ie`)", "traefik.http.routers.shlink-api.tls=true", "traefik.http.routers.shlink-api.tls.certresolver=lets-encrypt", ] } task "shlink" { driver = "docker" config { image = "shlinkio/shlink" ports = ["api"] } template { data = <