var.treafik copy-paste...

This commit is contained in:
Greyscale 2025-01-16 19:39:53 +01:00
parent 5e73523c38
commit d7527a11e4
Signed by: grey
GPG key ID: DDB392AE64B32D89
8 changed files with 58 additions and 65 deletions
products
dex
forgejo/forgejo
homeassistant
minio
pgbackweb
portainer/ui
postgres
yarr

View file

@ -18,15 +18,14 @@ variable "placement_constraints" {
variable "traefik" { variable "traefik" {
default = null default = null
type = object({ type = object({
domain = string domain = string
port = optional(number) port = optional(number)
non-ssl = optional(bool, true) non-ssl = optional(bool, true)
ssl = optional(bool, false) ssl = optional(bool, false)
rule = optional(string) rule = optional(string)
network = optional(object({ middlewares = optional(list(string))
name = string network = optional(object({ name = string, id = string }))
id = string basic-auth-users = optional(list(string))
}))
}) })
description = "Whether to enable traefik for the service." description = "Whether to enable traefik for the service."
} }

View file

@ -64,15 +64,14 @@ variable "database_storage_path" {
variable "traefik" { variable "traefik" {
default = null default = null
type = object({ type = object({
domain = string domain = string
port = optional(number) port = optional(number)
non-ssl = optional(bool, true) non-ssl = optional(bool, true)
ssl = optional(bool, false) ssl = optional(bool, false)
rule = optional(string) rule = optional(string)
network = optional(object({ middlewares = optional(list(string))
name = string network = optional(object({ name = string, id = string }))
id = string basic-auth-users = optional(list(string))
}))
}) })
description = "Whether to enable traefik for the service." description = "Whether to enable traefik for the service."
} }

View file

@ -36,15 +36,14 @@ variable "placement_constraints" {
variable "traefik" { variable "traefik" {
default = null default = null
type = object({ type = object({
domain = string domain = string
port = optional(number) port = optional(number)
non-ssl = optional(bool, true) non-ssl = optional(bool, true)
ssl = optional(bool, false) ssl = optional(bool, false)
rule = optional(string) rule = optional(string)
network = optional(object({ middlewares = optional(list(string))
name = string network = optional(object({ name = string, id = string }))
id = string basic-auth-users = optional(list(string))
}))
}) })
description = "Whether to enable traefik for the service." description = "Whether to enable traefik for the service."
} }

View file

@ -15,15 +15,14 @@ variable "networks" {
variable "traefik" { variable "traefik" {
default = null default = null
type = object({ type = object({
domain = string domain = string
port = optional(number) port = optional(number)
non-ssl = optional(bool, true) non-ssl = optional(bool, true)
ssl = optional(bool, false) ssl = optional(bool, false)
rule = optional(string) rule = optional(string)
network = optional(object({ middlewares = optional(list(string))
name = string network = optional(object({ name = string, id = string }))
id = string basic-auth-users = optional(list(string))
}))
}) })
description = "Whether to enable traefik for the service." description = "Whether to enable traefik for the service."
} }

View file

@ -35,15 +35,14 @@ variable "networks" {
variable "traefik" { variable "traefik" {
default = null default = null
type = object({ type = object({
domain = string domain = string
port = optional(number) port = optional(number)
non-ssl = optional(bool, true) non-ssl = optional(bool, true)
ssl = optional(bool, false) ssl = optional(bool, false)
rule = optional(string) rule = optional(string)
network = optional(object({ middlewares = optional(list(string))
name = string network = optional(object({ name = string, id = string }))
id = string basic-auth-users = optional(list(string))
}))
}) })
description = "Whether to enable traefik for the service." description = "Whether to enable traefik for the service."
} }

View file

@ -14,15 +14,14 @@ variable "networks" {
variable "traefik" { variable "traefik" {
default = null default = null
type = object({ type = object({
domain = string domain = string
port = optional(number) port = optional(number)
non-ssl = optional(bool, true) non-ssl = optional(bool, true)
ssl = optional(bool, false) ssl = optional(bool, false)
rule = optional(string) rule = optional(string)
network = optional(object({ middlewares = optional(list(string))
name = string network = optional(object({ name = string, id = string }))
id = string basic-auth-users = optional(list(string))
}))
}) })
description = "Whether to enable traefik for the service." description = "Whether to enable traefik for the service."
} }

View file

@ -4,7 +4,7 @@ variable "postgres_image" {
description = "The docker image to use for the postgres service." description = "The docker image to use for the postgres service."
} }
variable "postgres_version" { variable "postgres_version" {
default = "latest" default = "17"
type = string type = string
description = "The version of the docker image to use for the postgres service." description = "The version of the docker image to use for the postgres service."
} }
@ -53,7 +53,7 @@ variable "ports" {
condition = alltrue([for port in var.ports : port.container >= 1 && port.container <= 65535]) condition = alltrue([for port in var.ports : port.container >= 1 && port.container <= 65535])
} }
validation { validation {
error_message = "protocol must be either 'tcp' or 'udp'." error_message = "Protocol must be either 'tcp' or 'udp'."
condition = alltrue([for port in var.ports : port.protocol == "tcp" || port.protocol == "udp"]) condition = alltrue([for port in var.ports : port.protocol == "tcp" || port.protocol == "udp"])
} }
} }

View file

@ -18,15 +18,14 @@ variable "placement_constraints" {
variable "traefik" { variable "traefik" {
default = null default = null
type = object({ type = object({
domain = string domain = string
port = optional(number) port = optional(number)
non-ssl = optional(bool, true) non-ssl = optional(bool, true)
ssl = optional(bool, false) ssl = optional(bool, false)
rule = optional(string) rule = optional(string)
network = optional(object({ middlewares = optional(list(string))
name = string network = optional(object({ name = string, id = string }))
id = string basic-auth-users = optional(list(string))
}))
}) })
description = "Whether to enable traefik for the service." description = "Whether to enable traefik for the service."
} }