nebula/docker/lychee.tf

37 lines
783 B
Terraform
Raw Normal View History

2017-12-28 15:20:21 +00:00
resource "docker_container" "lychee" {
name = "lychee"
image = "${docker_image.lychee.latest}"
restart = "unless-stopped"
destroy_grace_seconds = 10
must_run = true
volumes {
host_path = "/mnt/xwing/config/lychee"
container_path = "/config"
}
volumes {
host_path = "/mnt/xwing/data/lychee"
container_path = "/pictures"
}
2017-12-30 17:46:30 +00:00
upload {
content = "${file("${path.module}/conf/lychee.php.ini")}"
file = "/config/lychee/user.ini"
}
labels = "${merge(
locals.traefik_common_labels, map(
"traefik.port", 80,
"traefik.frontend.rule","Host:pics.${var.domain},pics.in.${var.domain}"
))}"
2017-12-28 15:20:21 +00:00
env = [
"PUID=986",
"PGID=984",
]
2018-02-04 10:36:20 +00:00
links = ["${docker_container.mariadb.name}"]
2017-12-28 15:20:21 +00:00
}