nebula/radicale/main.tf
Nemo 137eb3469f
Terraform Upgrade to 1.x (#3)
Co-authored-by: Hashfyre <joy.bhattacherjee@gmail.com>
2021-10-15 12:54:13 +00:00

46 lines
923 B
HCL

module "container" {
name = "radicale"
source = "../modules/container"
image = "tomsquest/docker-radicale:amd64"
resource = {
memory = 2000
memory_swap = 2000
}
# TODO Drop Capabilities
# https://github.com/tomsquest/docker-radicale#option-2-recommended-production-grade-instruction-secured-safe-rocket
web = {
expose = true
port = 5232
host = var.domain
}
volumes = [
{
host_path = "/mnt/xwing/data/radicale"
container_path = "/data"
},
{
host_path = "/mnt/xwing/config/radicale"
container_path = "/config"
},
]
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"
},
]
}