Adds gazee

This commit is contained in:
Nemo 2018-04-19 23:37:00 +05:30
parent b05bd3bd8b
commit a74efc6fba
3 changed files with 58 additions and 0 deletions

View File

@ -67,6 +67,12 @@ module "resilio" {
ips = "${var.ips}"
}
module "mylar" {
source = "mylar"
domain = "mylar.bb8.fun"
traefik-labels = "${var.traefik-common-labels}"
}
module "heimdall" {
source = "heimdall"
domain = "bb8.fun"

47
mylar/main.tf Normal file
View File

@ -0,0 +1,47 @@
data "docker_registry_image" "mylar" {
name = "linuxserver/mylar:latest"
}
resource "docker_image" "mylar" {
name = "${data.docker_registry_image.mylar.name}"
pull_triggers = ["${data.docker_registry_image.mylar.sha256_digest}"]
}
resource docker_container "mylar" {
name = "mylar"
image = "${docker_image.mylar.latest}"
labels = "${merge(
var.traefik-labels, map(
"traefik.port", 8090,
"traefik.frontend.rule","Host:${var.domain}"
))}"
volumes {
host_path = "/mnt/xwing/config/mylar"
container_path = "/config"
}
volumes {
host_path = "/mnt/xwing/media/DL/comics"
container_path = "/downloads"
}
volumes {
host_path = "/mnt/xwing/media/EBooks/Comics"
container_path = "/comics"
}
# lounge:tatooine
env = [
"PUID=1004",
"PGID=1003",
"TZ=Asia/Kolkata",
]
links = ["mariadb"]
restart = "unless-stopped"
destroy_grace_seconds = 10
must_run = true
}

5
mylar/variables.tf Normal file
View File

@ -0,0 +1,5 @@
variable "traefik-labels" {
type = "map"
}
variable "domain" {}