Setup one for audiobooks

This commit is contained in:
Nemo 2020-10-11 18:29:56 +05:30
parent 4922bd098f
commit 373793fcb5
1 changed files with 38 additions and 0 deletions

View File

@ -34,3 +34,41 @@ module "gonic" {
} }
] ]
} }
// Run a second instance, just for Audiobooks
module "gonic-audio" {
source = "../modules/container"
image = "sentriz/gonic"
name = "gonic-audio"
resource {
memory = "256"
memory_swap = "256"
}
web {
port = 80
host = "audiobooks.bb8.fun"
expose = true
}
env = [
"GONIC_SCAN_INTERVAL=60",
"GONIC_MUSIC_PATH=/books",
"GONIC_DB_PATH=/data/gonic-audio.db"
]
networks = "${list(docker_network.media.id, data.docker_network.bridge.id)}"
volumes = [
{
host_path = "/mnt/xwing/config/gonic"
container_path = "/data"
},
{
host_path = "/mnt/xwing/media/Music/Audiobooks"
container_path = "/books"
read_only = true
}
]
}