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