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

@ -130,9 +130,10 @@ variable "remote_configs" {
} }
variable "ports" { variable "ports" {
type = list(object({ type = list(object({
host = optional(number, null) host = optional(number, null)
container = number container = number
protocol = optional(string, "tcp") protocol = optional(string, "tcp")
publish_mode = optional(string, "ingress")
})) }))
default = [] 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." 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

@ -55,9 +55,10 @@ variable "networks" {
} }
variable "ports" { variable "ports" {
type = list(object({ type = list(object({
host = optional(number, null) host = optional(number, null)
container = number container = number
protocol = optional(string, "tcp") protocol = optional(string, "tcp")
publish_mode = optional(string, "ingress")
})) }))
default = [{ container = 5000 }] 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." 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

@ -37,9 +37,10 @@ variable "mounts" {
} }
variable "ports" { variable "ports" {
type = list(object({ type = list(object({
host = optional(number, null) host = optional(number, null)
container = number container = number
protocol = optional(string, "tcp") protocol = optional(string, "tcp")
publish_mode = optional(string, "ingress")
})) }))
default = [] default = []
} }

View file

@ -49,9 +49,10 @@ variable "remote_volumes" {
} }
variable "ports" { variable "ports" {
type = list(object({ type = list(object({
host = optional(number, null) host = optional(number, null)
container = number container = number
protocol = optional(string, "tcp") protocol = optional(string, "tcp")
publish_mode = optional(string, "ingress")
})) }))
default = [] default = []
} }

View file

@ -37,9 +37,10 @@ variable "mounts" {
} }
variable "ports" { variable "ports" {
type = list(object({ type = list(object({
host = optional(number, null) host = optional(number, null)
container = number container = number
protocol = optional(string, "tcp") protocol = optional(string, "tcp")
publish_mode = optional(string, "ingress")
})) }))
default = [] default = []
} }

View file

@ -44,9 +44,10 @@ variable "target" {
} }
variable "ports" { variable "ports" {
type = list(object({ type = list(object({
host = optional(number, null) host = optional(number, null)
container = number container = number
protocol = optional(string, "tcp") protocol = optional(string, "tcp")
publish_mode = optional(string, "ingress")
})) }))
default = [] default = []
} }