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

author Nemo <me@captnemo.in> 2019-05-12 9:01:46.0 +05:30:00
committer Nemo <me@captnemo.in> 2019-05-12 9:01:46.0 +05:30:00
commit
c152ec65df571babac778a27932bf5bc26efa480 [patch]
tree
b9d07e005ef7ce9df7de2b2403942eb29669260e
parent
4c55f5dd0f8c709ff1d43c6e9239b1de1fd9d10d
download
c152ec65df571babac778a27932bf5bc26efa480.tar.gz

Adds elibsrv Docker Container



Diff

 elibsrv.tf     | 40 ++++++++++++++++++++++++++++++++++++++++
 docker/data.tf |  2 --
 2 files changed, 40 insertions(+), 2 deletions(-)

diff --git a/elibsrv.tf b/elibsrv.tf
new file mode 100644
index 0000000..4e8afda 100644
--- /dev/null
+++ a/elibsrv.tf
@@ -1,0 +1,40 @@
module "elibsrv" {

  name   = "elibsrv"
  source = "./modules/container"
  image  = "captn3m0/elibsrv:latest"

  web {

    expose = true
    host   = "ebooks.${var.root-domain}"
    auth   = true
  }

  volumes = [

    {
      host_path      = "/mnt/xwing/media/EBooks"
      container_path = "/books"
    },
    {
      host_path      = "/mnt/xwing/config/elibsrv"
      container_path = "/config"
    },
    {
      host_path      = "/mnt/xwing/cache/elibsrv"
      container_path = "/cache"
    },
  ]

  env = [

    "elibsrv_thumbheight=320",
    "elibsrv_title=Scarif Media Archives",
  ]

  networks_advanced = [

    {
      name = "traefik"
    },
    {
      name = "bridge"
    },
  ]
}
diff --git a/docker/data.tf b/docker/data.tf
index d63133e..de6834d 100644
--- a/docker/data.tf
+++ a/docker/data.tf
@@ -1,6 +1,4 @@
data "docker_registry_image" "traefik" {

  # Critical and I like upgrading it
  # for updating config for new features
  name = "traefik:1.7"
}