job "files" { group "web" { network { port "http" { to = 80 } } volume "files" { type = "host" source = "static-files" read_only = true } service { name = "files" port = "http" provider = "nomad" tags = [ "nginx.hostname=files.magnusson.space", "nginx.certname=magnusson.space", ] } task "web" { driver = "docker" volume_mount { volume = "files" destination = "/var/www" } config { image = "nginx:1.25-alpine" ports = ["http"] volumes = [ "local:/etc/nginx/conf.d", ] } template { data = <