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
|
|
|
|
2021-10-15 12:54:13 +00:00
|
|
|
resource = {
|
2021-04-14 06:38:31 +00:00
|
|
|
memory = 2000
|
|
|
|
memory_swap = 2000
|
2019-06-28 18:22:44 +00:00
|
|
|
}
|
|
|
|
|
2021-10-15 12:54:13 +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
|
2021-10-15 12:54:13 +00:00
|
|
|
host = var.domain
|
2017-12-31 11:08:57 +00:00
|
|
|
}
|
|
|
|
|
2018-08-21 03:28:10 +00:00
|
|
|
volumes = [
|
|
|
|
{
|
|
|
|
host_path = "/mnt/xwing/data/radicale"
|
|
|
|
container_path = "/data"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
host_path = "/mnt/xwing/config/radicale"
|
|
|
|
container_path = "/config"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
2019-05-16 10:36:26 +00:00
|
|
|
uploads = [
|
|
|
|
{
|
2021-10-15 12:54:13 +00:00
|
|
|
content = file("${path.module}/config")
|
2021-04-14 07:00:35 +00:00
|
|
|
file = "/config/config"
|
2019-05-16 10:36:26 +00:00
|
|
|
},
|
|
|
|
{
|
2021-10-15 12:54:13 +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"
|
|
|
|
},
|
|
|
|
]
|
2017-12-31 11:08:57 +00:00
|
|
|
}
|