diff --git a/readarr/data/config/.gitkeep b/readarr/data/config/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/readarr/docker-compose.yml b/readarr/docker-compose.yml new file mode 100644 index 0000000..ddb8426 --- /dev/null +++ b/readarr/docker-compose.yml @@ -0,0 +1,32 @@ +version: "3.7" + +services: + app_proxy: + environment: + APP_HOST: readarr_server_1 + APP_PORT: 8787 + PROXY_AUTH_WHITELIST: "/api/*" + + server: + image: linuxserver/readarr:0.3.16-nightly@sha256:e0393656789fd839d05a6719b079984740652c050e2fc19083e5111e7905850c + environment: + - PUID=1000 + - PGID=1000 + volumes: + - ${APP_DATA_DIR}/data/config:/config + - ${UMBREL_ROOT}/data/storage/downloads:/downloads + restart: on-failure + + mac: + image: getumbrel/media-app-configurator:v1.2.0@sha256:6aa568b53f6743dc4a7b3212f97b9d4ca78800ede5eadc0e4b80c7f3af50eda3 + user: "1000:1000" + restart: on-failure + volumes: + - ${APP_DATA_DIR}/data/config:/config + - ${UMBREL_ROOT}/data/storage/downloads:/downloads + environment: + APP_ID: "readarr" + APP_URL: "http://readarr_server_1:8787" + TRANSMISSION_HOST: "transmission_server_1" + TRANSMISSION_PORT: 9091 + ROOT_FOLDER: "/downloads/books" \ No newline at end of file diff --git a/readarr/hooks/post-install b/readarr/hooks/post-install new file mode 100755 index 0000000..255f4fe --- /dev/null +++ b/readarr/hooks/post-install @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +set -euo pipefail + +if "${UMBREL_ROOT}/scripts/app" ls-installed | grep --quiet 'prowlarr' +then + CONFIG_FILE="${APP_DATA_DIR}/data/config/config.xml" + + # Wait for the config.xml file to exist + # Wait for the API key property () to exist in the config file + for attempt in $(seq 1 20); do + if [[ -f "${CONFIG_FILE}" ]] && cat "${CONFIG_FILE}" | grep --quiet ''; then + echo "config.xml file exists and xml key exists..." + + # Restart Prowlarr to automatically set this up as an app + "${UMBREL_ROOT}/scripts/app" restart prowlarr + + exit + fi + sleep 1 + done + + >&2 echo "Error: Failed to locate inside: ${CONFIG_FILE}" + exit 1 +fi \ No newline at end of file diff --git a/readarr/umbrel-app.yml b/readarr/umbrel-app.yml new file mode 100644 index 0000000..87048bc --- /dev/null +++ b/readarr/umbrel-app.yml @@ -0,0 +1,27 @@ +manifestVersion: 1.1 +id: readarr +category: media +name: Readarr +version: "0.3.16" +tagline: Your book collection manager +description: >- + Readarr is an ebook and audiobook collection manager for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new books from your favorite authors and will grab, sort, and rename them. Note that only one type of a given book is supported. If you want both an audiobook and ebook of a given book you will need multiple instances. +developer: Readarr +website: https://readarr.com/ +dependencies: + - transmission +repo: https://github.com/Readarr/Readarr +support: https://github.com/Readarr/Readarr/issues +port: 8787 +gallery: + - 1.jpg + - 2.jpg + - 3.jpg +path: "" +defaultUsername: "" +defaultPassword: "" +torOnly: false +permissions: + - STORAGE_DOWNLOADS +submitter: Choff3 +submission: https://github.com/getumbrel/umbrel-apps/pull/712