module "container" {
name = "radicale"
source = "../modules/container"
image = "tomsquest/docker-radicale:amd64"
resource = {
memory = 2000
memory_swap = 2000
}
web = {
expose = true
port = 5232
host = var.domain
}
volumes = [
{
host_path = "/mnt/zwing/config/radicale"
container_path = "/data"
}
]
uploads = [
{
content = file("${path.module}/config")
file = "/config/config"
},
{
content = file("${path.module}/logging.conf")
file = "/config/logging"
},
{
content = file("${path.module}/users")
file = "/config/users"
},
]
}