ports declarations should support publish_mode
This commit is contained in:
parent
545244341c
commit
a8c92f599a
6 changed files with 24 additions and 18 deletions
|
@ -130,9 +130,10 @@ variable "remote_configs" {
|
|||
}
|
||||
variable "ports" {
|
||||
type = list(object({
|
||||
host = optional(number, null)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
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."
|
||||
|
|
|
@ -55,9 +55,10 @@ variable "networks" {
|
|||
}
|
||||
variable "ports" {
|
||||
type = list(object({
|
||||
host = optional(number, null)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
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."
|
||||
|
|
|
@ -37,9 +37,10 @@ variable "mounts" {
|
|||
}
|
||||
variable "ports" {
|
||||
type = list(object({
|
||||
host = optional(number, null)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
host = optional(number, null)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
publish_mode = optional(string, "ingress")
|
||||
}))
|
||||
default = []
|
||||
}
|
|
@ -49,9 +49,10 @@ variable "remote_volumes" {
|
|||
}
|
||||
variable "ports" {
|
||||
type = list(object({
|
||||
host = optional(number, null)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
host = optional(number, null)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
publish_mode = optional(string, "ingress")
|
||||
}))
|
||||
default = []
|
||||
}
|
||||
|
|
|
@ -37,9 +37,10 @@ variable "mounts" {
|
|||
}
|
||||
variable "ports" {
|
||||
type = list(object({
|
||||
host = optional(number, null)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
host = optional(number, null)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
publish_mode = optional(string, "ingress")
|
||||
}))
|
||||
default = []
|
||||
}
|
|
@ -44,9 +44,10 @@ variable "target" {
|
|||
}
|
||||
variable "ports" {
|
||||
type = list(object({
|
||||
host = optional(number, null)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
host = optional(number, null)
|
||||
container = number
|
||||
protocol = optional(string, "tcp")
|
||||
publish_mode = optional(string, "ingress")
|
||||
}))
|
||||
default = []
|
||||
}
|
Loading…
Reference in a new issue