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

module "elibsrv" {
  name   = "elibsrv"
  source = "./modules/container"
  image  = "captn3m0/elibsrv:v0.0.3"

  resource {
    memory      = 256
    memory_swap = 256
  }

  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"
    },
  ]
}