🏡 index : github.com/captn3m0/nebula.git

author Nemo <me@captnemo.in> 2018-01-29 23:52:27.0 +05:30:00
committer Nemo <me@captnemo.in> 2018-01-29 23:52:27.0 +05:30:00
commit
acd95600259c9d397c975022798999409b71cd01 [patch]
tree
295982146b5e3f40189be0fdc8274df88b3275de
parent
923d33222cfab259586d9fa11bd2cbc1dad4002c
download
acd95600259c9d397c975022798999409b71cd01.tar.gz

sickrage -> transmission link



Diff

 docker/gitea.tf |  6 ------
 docker/main.tf  | 92 +++++++++++++++++++++++++++++++++++++++++++++-----------------------------------
 2 files changed, 48 insertions(+), 50 deletions(-)

diff --git a/docker/gitea.tf b/docker/gitea.tf
index 5eacf57..21779e4 100644
--- a/docker/gitea.tf
+++ a/docker/gitea.tf
@@ -40,35 +40,29 @@
    content = "${file("${path.module}/conf/gitea/public/img/gitea-lg.png")}"
    file    = "/data/gitea/public/img/gitea-lg.png"
  }

  upload {

    content = "${file("${path.module}/conf/gitea/public/img/gitea-sm.png")}"
    file    = "/data/gitea/public/img/gitea-sm.png"
  }

  upload {

    content = "${file("${path.module}/conf/gitea/public/img/gitea-sm.png")}"
    file    = "/data/gitea/public/img/favicon.png"
  }

  upload {

    content = "${file("${path.module}/conf/humans.txt")}"
    file    = "/data/gitea/public/humans.txt"
  }

  # Extra Links in header
  # TODO: Doesn't work
  upload {

    content = "${file("${path.module}/conf/gitea/extra_links.tmpl")}"
    file    = "/data/gitea/templates/custom/extra_links.tmpl"
  }

  # This is the main configuration file
  upload {

    content = "${data.template_file.gitea-config-file.rendered}"
    file    = "/data/gitea/conf/app.ini"
  }

  memory                = 256
  restart               = "unless-stopped"
  destroy_grace_seconds = 10
diff --git a/docker/main.tf b/docker/main.tf
index 7c7e2ab..892d86f 100644
--- a/docker/main.tf
+++ a/docker/main.tf
@@ -127,51 +127,51 @@
  links = ["transmission"]
}

resource "docker_container" "airsonic" {

  name  = "airsonic"
  image = "${docker_image.airsonic.latest}"
# resource "docker_container" "airsonic" {
#   name  = "airsonic"
#   image = "${docker_image.airsonic.latest}"

#   restart               = "unless-stopped"
#   destroy_grace_seconds = 30
#   must_run              = true
#   memory                = 800

#   volumes {
#     host_path      = "/mnt/xwing/config/airsonic/data"
#     container_path = "/config"
#   }

#   volumes {
#     host_path      = "/mnt/xwing/media/Music"
#     container_path = "/music"
#   }

#   volumes {
#     host_path      = "/mnt/xwing/config/airsonic/playlists"
#     container_path = "/playlists"
#   }

#   volumes {
#     host_path      = "/mnt/xwing/config/airsonic/podcasts"
#     container_path = "/podcasts"
#   }

#   labels {
#     "traefik.enable"                  = "true"
#     "traefik.port"                    = "4040"
#     "traefik.frontend.rule"           = "Host:airsonic.in.${var.domain},airsonic.${var.domain}"
#     "traefik.frontend.passHostHeader" = "true"
#   }

#   # lounge:tatooine
#   env = [
#     "PUID=1004",
#     "PGID=1003",
#     "TZ=Asia/Kolkata",
#     "CONTEXT_PATH=https://airsonic.bb8.fun",
#   ]
# }

  restart               = "unless-stopped"
  destroy_grace_seconds = 30
  must_run              = true
  memory                = 800

  volumes {

    host_path      = "/mnt/xwing/config/airsonic/data"
    container_path = "/config"
  }

  volumes {

    host_path      = "/mnt/xwing/media/Music"
    container_path = "/music"
  }

  volumes {

    host_path      = "/mnt/xwing/config/airsonic/playlists"
    container_path = "/playlists"
  }

  volumes {

    host_path      = "/mnt/xwing/config/airsonic/podcasts"
    container_path = "/podcasts"
  }

  labels {

    "traefik.enable"                  = "true"

    "traefik.port"                    = "4040"

    "traefik.frontend.rule"           = "Host:airsonic.in.${var.domain},airsonic.${var.domain}"

    "traefik.frontend.passHostHeader" = "true"

  }

  # lounge:tatooine
  env = [

    "PUID=1004",
    "PGID=1003",
    "TZ=Asia/Kolkata",
    "CONTEXT_PATH=https://airsonic.bb8.fun",
  ]
}

resource "docker_container" "headerdebug" {

  name  = "headerdebug"
  image = "${docker_image.headerdebug.latest}"
@@ -228,6 +228,10 @@
    "PUID=1004",
    "PGID=1003",
    "TZ=Asia/Kolkata",
  ]

  links = [

    "transmission",
  ]
}