module "backups" { source = "./backups" } resource "nomad_job" "whoami" { hcl2 { enabled = true vars = { "count" = 4, } } jobspec = file("${path.module}/whoami.nomad") } resource "nomad_job" "ipdvr" { jobspec = file("${path.module}/ip-dvr.nomad") } module "media-library" { source = "./service" name = "media-library" image = "caddy" args = ["caddy", "file-server", "--root", "/mnt/media", "--browse"] ingress = true service_port = 80 host_volumes = [ { name = "media-read" dest = "/mnt/media" read_only = true }, ] } module "minitor" { source = "./service" name = "minitor" image = "iamthefij/minitor-go:1.1" args = ["-metrics", "-config=$${NOMAD_TASK_DIR}/config.yml"] service_port = 8080 prometheus = true templates = [ { data = <