Files
homelab/main.tf
T

37 lines
884 B
Terraform

module "system_globals" {
source = "./modules/00-globals/system"
}
module "services" {
source = "./services"
}
locals {
volume_host = "${module.system_globals.volume_host}"
}
module "infrastructure_ext" {
source = "./modules/01-networking/network-service"
name = "infrastructure_ext"
driver = "host"
attachable = true
}
module "caddy" {
source = "./modules/01-networking/caddy-service"
volume_path = "${local.volume_host}"
domains = [
"blackchaosnl.duckdns.org",
"blackchaosnl.myaddr.io",
"blackchaosnl.myaddr.dev",
"blackchaosnl.myaddr.tools"
]
tls_email = "jjvijgen@gmail.com"
container_name = "caddy"
service_definitions = module.services.service_definitions
networks = [
module.infrastructure_ext.name,
module.services.infrastructure_int.name
]
}