job "raytracer" { group "web" { network { port "http" { to = 80 } } volume "files" { type = "host" source = "static-files" read_only = true } service { name = "raytracer" port = "http" provider = "nomad" tags = [ "nginx.hostname=raytracer.magnusson.space", "nginx.certname=magnusson.space", ] } 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 = <