Manage container labels and expose labels in inventory output

This commit is contained in:
beatz174-bit
2026-04-21 09:43:38 +10:00
parent cb92ebc70e
commit 4695839df4
28 changed files with 56 additions and 28 deletions
+3 -2
View File
@@ -2,7 +2,9 @@ resource "docker_container" "traefik" {
name = local.docker_containers["traefik"].container_name
image = local.docker_containers["traefik"].image
restart = local.docker_containers["traefik"].restart_policy
restart = local.docker_containers["traefik"].restart_policy
labels = local.docker_containers["traefik"].useful_labels
network_mode = "core_traefik"
ports {
@@ -62,7 +64,6 @@ resource "docker_container" "traefik" {
lifecycle {
ignore_changes = [
env,
labels,
]
}
}