nebula/radicale/main.tf

43 lines
834 B
Terraform
Raw Permalink Normal View History

2018-08-21 03:28:10 +00:00
module "container" {
name = "radicale"
source = "../modules/container"
2019-05-16 10:36:26 +00:00
image = "tomsquest/docker-radicale:amd64"
2018-08-21 03:28:10 +00:00
resource = {
2021-04-14 06:38:31 +00:00
memory = 2000
memory_swap = 2000
2019-06-28 18:22:44 +00:00
}
# TODO Drop Capabilities
# https://github.com/tomsquest/docker-radicale#option-2-recommended-production-grade-instruction-secured-safe-rocket
web = {
2018-08-21 03:28:10 +00:00
expose = true
port = 5232
host = var.domain
}
2023-07-10 14:29:55 +00:00
# SSD
2018-08-21 03:28:10 +00:00
volumes = [
{
2023-07-10 14:29:55 +00:00
host_path = "/mnt/zwing/config/radicale"
2018-08-21 03:28:10 +00:00
container_path = "/data"
2023-07-10 14:29:55 +00:00
}
2018-08-21 03:28:10 +00:00
]
2019-05-16 10:36:26 +00:00
uploads = [
{
content = file("${path.module}/config")
2021-04-14 07:00:35 +00:00
file = "/config/config"
2019-05-16 10:36:26 +00:00
},
{
content = file("${path.module}/logging.conf")
file = "/config/logging"
},
{
content = file("${path.module}/users")
2019-05-16 10:36:26 +00:00
file = "/config/users"
},
]
}