Add audiobookshelf and readarr

This commit is contained in:
Marc Fokkert
2024-11-13 15:25:20 +01:00
parent 0d1e403477
commit da951d816d
5 changed files with 1007 additions and 248 deletions

62
audiobookshelf.tf Normal file
View File

@@ -0,0 +1,62 @@
data "docker_registry_image" "audiobookshelf" {
name = "ghcr.io/advplyr/audiobookshelf:latest"
}
resource "docker_image" "audiobookshelf" {
name = data.docker_registry_image.audiobookshelf.name
pull_triggers = [data.docker_registry_image.audiobookshelf.sha256_digest]
}
resource "docker_container" "audiobookshelf" {
image = docker_image.audiobookshelf.image_id
name = "audiobookshelf"
restart = "always"
log_driver = "local"
env = [
"TZ=Europe/Amsterdam"
]
networks_advanced {
name = docker_network.bridge.name
ipv4_address = "192.168.2.146"
}
mounts {
target = "/config"
source = "/share/appdata/audiobookshelf/config"
type = "bind"
}
mounts {
target = "/metadata"
source = "/share/appdata/audiobookshelf/metadata"
type = "bind"
}
mounts {
target = "/audiobooks"
source = "/share/datarr/media/audiobooks"
type = "bind"
}
mounts {
target = "/podcasts"
source = "/share/datarr/media/podcasts"
type = "bind"
}
mounts {
target = "/podcasts"
source = "/share/datarr/media/podcasts"
type = "bind"
}
lifecycle {
ignore_changes = [
ulimit,
log_opts
]
}
}