2018-08-21 03:28:10 +00:00
|
|
|
module "container" {
|
|
|
|
name = "radicale"
|
|
|
|
source = "../modules/container"
|
|
|
|
image = "tomsquest/docker-radicale:latest"
|
|
|
|
|
|
|
|
web {
|
|
|
|
expose = true
|
|
|
|
port = 5232
|
|
|
|
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"
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
|
|
|
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"
|
|
|
|
},
|
|
|
|
]
|
2017-12-31 11:08:57 +00:00
|
|
|
}
|