nebula/docker/lychee.tf

45 lines
1.3 KiB
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"
}
2017-12-28 15:20:21 +00:00
labels {
"traefik.port" = 80
"traefik.frontend.passHostHeader" = "false"
"traefik.enable" = "true"
"traefik.frontend.headers.SSLTemporaryRedirect" = "true"
"traefik.frontend.headers.STSIncludeSubdomains" = "false"
"traefik.frontend.headers.contentTypeNosniff" = "true"
"traefik.frontend.headers.browserXSSFilter" = "true"
"traefik.frontend.headers.STSSeconds" = "2592000"
"traefik.frontend.headers.customFrameOptionsValue" = "${var.xfo_allow}"
"traefik.frontend.headers.customResponseHeaders" = "${var.xpoweredby}"
2017-12-28 17:14:19 +00:00
"traefik.frontend.rule" = "Host:pics.${var.domain},pics.in.${var.domain}"
2017-12-28 15:20:21 +00:00
}
env = [
"PUID=986",
"PGID=984",
]
links = ["mariadb"]
2017-12-28 15:20:21 +00:00
}