homelab-nomad/services/media-library.tf
Ian Fijolek d5078b24da Refactor use of wesher to be behind a variable toggle
Occasionally I run into issues with Wesher. This makes it easier to
disable use of Wesher by setting TF_VAR_use_wesher to false.
2023-08-24 12:51:32 -07:00

19 lines
383 B
HCL

module "media-library" {
source = "./service"
name = "media-library"
image = "caddy"
args = ["caddy", "file-server", "--root", "/mnt/media", "--browse"]
ingress = true
service_port = 80
use_wesher = var.use_wesher
host_volumes = [
{
name = "media-read"
dest = "/mnt/media"
read_only = true
},
]
}