job "homepage" { group "web" { count = 1 network { port "http" { to = 80 } } service { name = "homepage" port = "http" provider = "nomad" tags = [ "nginx.hostname=.magnusson.wiki", "nginx.certname=magnusson.wiki", ] } task "web" { driver = "docker" config { image = "nginx:1.25-alpine" ports = ["http"] volumes = [ "local/config:/etc/nginx/conf.d", "local/html:/var/www/html", ] } template { data = <