Missing remote volumes

This commit is contained in:
Greyscale 2025-02-14 20:54:13 +01:00
parent 22d2c42b74
commit 6f0cb5a988
Signed by: grey
GPG key ID: DDB392AE64B32D89
2 changed files with 9 additions and 3 deletions
products/minio

View file

@ -11,7 +11,6 @@ variable "networks" {
default = []
description = "A list of network names to attach the service to."
}
variable "traefik" {
default = null
type = object({
@ -31,7 +30,6 @@ variable "placement_constraints" {
type = list(string)
description = "Docker Swarm placement constraints"
}
variable "domain" {
type = string
description = "The domain to use for the service."
@ -41,7 +39,14 @@ variable "mounts" {
default = {}
description = "A map of host paths to container paths to mount. The key is the host path, and the value is the container path."
}
variable "remote_volumes" {
type = map(object({
id = string
driver = string
}))
default = {}
description = "A remote volume is a volume created explicitly and not implicitly by this Service. This is a map of remote volumes to mount into the container. The key is the source, and the value is the target."
}
variable "ports" {
type = list(object({
host = optional(number, null)

View file

@ -20,6 +20,7 @@ module "minio" {
}
ports = var.ports
mounts = var.mounts
remote_volumes = var.remote_volumes
networks = concat(var.networks, [module.network])
placement_constraints = var.placement_constraints
labels = {