This repository has been archived on 2026-07-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
docker/infrastructure/terraform/docker/outputs.tf
T

39 lines
1.4 KiB
Terraform

output "docker_host_in_use" {
description = "Docker daemon endpoint currently targeted by this workspace."
value = var.docker_host
}
output "docker_containers" {
description = "Documentation-shaped inventory of Docker containers managed via services-up.sh compose sources."
value = local.docker_containers
}
output "docker_inventory" {
description = "Compact Docker inventory suitable for export and merging into broader infrastructure docs."
value = {
compose_project = "core"
container_count = length(local.docker_containers)
containers = {
for key, container in local.docker_containers : key => {
compose_service = container.compose_service
compose_file = container.compose_file
container_name = container.container_name
image = container.image
image_source = container.image_source
build_context = container.build_context
network_mode = container.network_mode
networks = container.networks
published_ports = container.published_ports
mounts = container.mounts
restart_policy = container.restart_policy
labels = container.useful_labels
}
}
}
}
output "managed_container_names" {
description = "Names of containers intentionally tracked in Terraform documentation resources."
value = sort(keys(local.docker_containers))
}