Opinionated.tf/products/apt-caching-proxy/apt-caching-proxy.tf

20 lines
581 B
Terraform
Raw Permalink Normal View History

2024-09-09 16:46:50 +00:00
module "ap" {
2024-11-22 10:56:12 +00:00
source = "../../docker/service"
2024-09-09 16:46:50 +00:00
image = "sameersbn/apt-cacher-ng"
stack_name = "apt-caching-proxy"
service_name = "apt-caching-proxy"
placement_constraints = var.placement_constraints
2025-05-03 00:20:41 +00:00
mounts = local.mounts
traefik = var.traefik
2024-09-09 16:46:50 +00:00
ports = [
{
2025-05-03 00:20:41 +00:00
host = var.port
container = 3142
publish_mode = var.publish_mode
2024-09-09 16:46:50 +00:00
}
]
}
2025-05-03 00:20:41 +00:00
locals {
mounts = var.data_persist_path != null ? zipmap([var.data_persist_path], ["/var/cache/apt-cacher-ng"]) : {}
}