Adds elibsrv Docker Container

This commit is contained in:
Nemo 2019-05-12 09:01:46 +05:30
parent 4c55f5dd0f
commit c152ec65df
2 changed files with 40 additions and 2 deletions

View File

@ -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"
}

40
elibsrv.tf Normal file
View File

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