Nemo
c57b4b2c72
- docker_container cannot take upload as a parameter, leaving no choice but to use docker_container like a savage. - This will take some backward refactors.
43 lines
842 B
HCL
43 lines
842 B
HCL
module "image" {
|
|
source = "../modules/image"
|
|
image = "tomsquest/docker-radicale:latest"
|
|
}
|
|
|
|
module "container" {
|
|
name = "radicale"
|
|
source = "../modules/container"
|
|
image = "${module.image.image}"
|
|
|
|
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"
|
|
# },
|
|
# ]
|
|
}
|