ports declarations should support publish_mode

This commit is contained in:
Greyscale 2025-03-03 15:51:18 +01:00
parent 545244341c
commit a8c92f599a
6 changed files with 24 additions and 18 deletions
docker/service
products
docker_registry
expose
minio
mqtt
socket-proxy

View file

@ -133,6 +133,7 @@ variable "ports" {
host = optional(number, null)
container = number
protocol = optional(string, "tcp")
publish_mode = optional(string, "ingress")
}))
default = []
description = "A map of port mappings to expose on the host. The key is the host port, and the value is the container port."

View file

@ -58,6 +58,7 @@ variable "ports" {
host = optional(number, null)
container = number
protocol = optional(string, "tcp")
publish_mode = optional(string, "ingress")
}))
default = [{ container = 5000 }]
description = "A map of port mappings to expose on the host. The key is the host port, and the value is the container port."

View file

@ -40,6 +40,7 @@ variable "ports" {
host = optional(number, null)
container = number
protocol = optional(string, "tcp")
publish_mode = optional(string, "ingress")
}))
default = []
}

View file

@ -52,6 +52,7 @@ variable "ports" {
host = optional(number, null)
container = number
protocol = optional(string, "tcp")
publish_mode = optional(string, "ingress")
}))
default = []
}

View file

@ -40,6 +40,7 @@ variable "ports" {
host = optional(number, null)
container = number
protocol = optional(string, "tcp")
publish_mode = optional(string, "ingress")
}))
default = []
}

View file

@ -47,6 +47,7 @@ variable "ports" {
host = optional(number, null)
container = number
protocol = optional(string, "tcp")
publish_mode = optional(string, "ingress")
}))
default = []
}