job "drone" { datacenters = ["homelab"] type = "service" constraint { attribute = "${attr.cpu.arch}" value = "amd64" } group "droneCI" { network { mode = "host" port "http" { to = 80 } } vault { policies = ["access-tables"] } task "drone-server" { driver = "docker" service { name = "drone" port = "http" tags = [ "traefik.enable=true", "traefik.http.routers.${NOMAD_JOB_NAME}.rule=Host(`${NOMAD_JOB_NAME}.ducamps.win`)", "traefik.http.routers.${NOMAD_JOB_NAME}.tls.domains[0].sans=${NOMAD_JOB_NAME}.ducamps.win", "traefik.http.routers.${NOMAD_JOB_NAME}.tls.certresolver=myresolver", "traefik.http.middlewares.httpsRedirect.redirectscheme.scheme=https", "traefik.http.routers.${NOMAD_JOB_NAME}.middlewares=httpsRedirect" ] } config { image = "drone/drone:latest" ports = [ "http" ] } env { } template { data= <