job "keys" { group "web" { network { port "http" { to = 80 } } service { name = "keys" port = "http" provider = "nomad" tags = [ "nginx.hostname=keys.magnusson.space", "nginx.certname=magnusson.space", ] } task "web" { driver = "docker" resources { cpu = 50 memory = 20 } config { image = "nginx:1.25-alpine" ports = ["http"] volumes = [ "local/config:/etc/nginx/conf.d", "local/www:/var/www", ] } template { data = <