job "rr" { group "web" { network { port "http" { to = 80 } } volume "files" { type = "host" source = "static-files" read_only = true } service { name = "rr" port = "http" provider = "nomad" tags = [ "traefik.enable=true", "traefik.http.routers.rr.rule=Host(`rr.magnusson.space`)", "traefik.http.routers.rr.entrypoints=https", "traefik.http.routers.rr.tls.certresolver=default", ] } task "web" { driver = "docker" resources { cpu = 50 memory = 20 } volume_mount { volume = "files" destination = "/var/www" } config { image = "nginx:1.25-alpine" ports = ["http"] volumes = [ "local:/etc/nginx/conf.d", ] } template { data = <