Manage container labels and expose labels in inventory output
This commit is contained in:
@@ -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,
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user