nebula/elibsrv.tf

48 lines
807 B
Terraform
Raw Normal View History

2019-05-12 03:31:46 +00:00
module "elibsrv" {
name = "elibsrv"
source = "./modules/container"
2019-11-03 20:10:18 +00:00
image = "captn3m0/elibsrv"
2019-08-01 18:41:25 +00:00
resource {
2019-11-03 20:10:18 +00:00
memory = 512
memory_swap = 512
2019-08-01 18:41:25 +00:00
}
2019-05-12 03:31:46 +00:00
web {
expose = true
host = "ebooks.${var.root-domain}"
auth = true
}
volumes = [
{
host_path = "/mnt/xwing/media/EBooks"
container_path = "/books"
2019-11-03 20:10:18 +00:00
read_only = true
2019-05-12 03:31:46 +00:00
},
{
host_path = "/mnt/xwing/config/elibsrv"
container_path = "/config"
2019-11-03 20:10:18 +00:00
read_only = true
2019-05-12 03:31:46 +00:00
},
{
host_path = "/mnt/xwing/cache/elibsrv"
container_path = "/cache"
},
]
env = [
"elibsrv_thumbheight=320",
"elibsrv_title=Scarif Media Archives",
]
networks_advanced = [
{
name = "traefik"
},
{
name = "bridge"
},
]
}