{"id":13522077,"url":"https://github.com/Luctia/ezarr","last_synced_at":"2025-03-31T22:30:31.268Z","repository":{"id":41136436,"uuid":"507672567","full_name":"Luctia/ezarr","owner":"Luctia","description":"Ezarr aims to make it as easy as possible to setup an entire Servarr/Jackett/BitTorrent/Usenet/PleX/Jellyfin mediacenter stack using Docker","archived":false,"fork":false,"pushed_at":"2024-10-11T21:14:56.000Z","size":42,"stargazers_count":716,"open_issues_count":12,"forks_count":80,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-11-02T06:31:27.095Z","etag":null,"topics":["docker","docker-compose","jackett","jellyfin","lidarr","mylar3","overseerr","plex","plex-media-server","prowlarr","qbittorrent","radarr","readarr","sabnzbd","servarr","sonarr","tautulli","torrent","usenet"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Luctia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-26T20:01:41.000Z","updated_at":"2024-10-31T14:32:40.000Z","dependencies_parsed_at":"2024-07-31T11:32:24.084Z","dependency_job_id":"455c82e5-2b93-473b-8575-e1abdac27b3b","html_url":"https://github.com/Luctia/ezarr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luctia%2Fezarr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luctia%2Fezarr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luctia%2Fezarr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luctia%2Fezarr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Luctia","download_url":"https://codeload.github.com/Luctia/ezarr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246552043,"owners_count":20795756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","jackett","jellyfin","lidarr","mylar3","overseerr","plex","plex-media-server","prowlarr","qbittorrent","radarr","readarr","sabnzbd","servarr","sonarr","tautulli","torrent","usenet"],"created_at":"2024-08-01T06:00:41.937Z","updated_at":"2025-03-31T22:30:29.792Z","avatar_url":"https://github.com/Luctia.png","language":"Python","funding_links":[],"categories":["Python","docker","Complimenting Apps"],"sub_categories":[],"readme":"# EZARR\n[![Check running](https://github.com/Luctia/ezarr/actions/workflows/check_running.yml/badge.svg)](https://github.com/Luctia/ezarr/actions/workflows/check_running.yml)\n\nEzarr is a project built to make it EZ to deploy a Servarr mediacenter on an Ubuntu server. The\nbadge above means that the shell script and docker-compose file in this repository at least *don't\ncrash*. It doesn't necessarily mean it will run well on your system ;) \nIt's set up to follow the [TRaSH guidelines](https://trash-guides.info/Hardlinks/How-to-setup-for/Docker/) so it should at least perform optimally. It features:\n- [Sonarr](https://sonarr.tv/) is an application to manage TV shows. It is capable of keeping track\n  of what you'd like to watch, at what quality, in which language and more, and can find a place to\n  download this if connected to Prowlarr and qBittorrent. It can also reorganize the media you\n  already own in order to create a more uniformly formatted collection.\n- [Radarr](https://radarr.video/) is like Sonarr, but for movies.\n- [Bazarr](https://www.bazarr.media/) is a companion application to Sonarr and Radarr that manages\n  and downloads subtitles based on your requirements.\n- [Lidarr](https://lidarr.audio/) is like Sonarr, but for music.\n- [Readarr](https://readarr.com/) is like Sonarr, but for books.\n- [Mylar3](https://github.com/mylar3/mylar3) is like Sonarr, but for comic books. This one is a bit\n  tricky to set up, so do so at your own risk. In order to connect this to your Prowlarr container,\n  the process within Prowlarr is the same as for the other containers (add app). You'll have to add\n  an API key within Mylar3, yourself.\n- [Audiobookshelf](https://www.audiobookshelf.org/) is a self-hosted audiobook and podcast server.\n- [Prowlarr](https://wiki.servarr.com/prowlarr) can keep track of indexers, which are services that\n  keep track of Torrent or UseNet links. One can search an indexer for certain content and find a\n  where to download this. **Note**: when adding an indexer, please do not set the \"seed ratio\" to\n  less than 1. Less than 1 means that you upload less than you download. Not only is this\n  unfriendly towards your fellow users, but it can also get you banned from certain indexers.\n- [Jackett](https://github.com/Jackett/Jackett) is an alternative to Prowlarr. \n- [FlareSolverr](https://github.com/FlareSolverr/FlareSolverr) is a proxy server to bypass Cloudflare and DDoS-GUARD protection.\n- [qBittorrent](https://www.qbittorrent.org/) can download torrents and provides a bunch more\n  features for management.\n- [SABnzbd](https://sabnzbd.org/) can download nzb's\n  features for management.\n- [PleX](https://www.plex.tv/) is a mediaserver. Using this, you get access to a Netflix-like\n  interface across many devices like your laptop or computer, your phone, your TV and more. For\n  some features, you need a [PleX pass](https://www.plex.tv/nl/plex-pass/).\n- [Tautulli](https://tautulli.com/) is a monitoring application for PleX  which can keep track of\n  what has been watched, who watched it, when and where they watched it, and how it was watched.\n- [Jellyfin](https://jellyfin.org/) is an alternative for PleX. Which you'd like to use is a matter\n  of preference, and you *could* even use both, although this is probably a waste of resources.\n- [Overseerr](https://overseerr.dev/) is a show and movie request management and media discovery\n   tool.\n- [Jellyseerr](https://github.com/Fallenbagel/jellyseerr) is like Overseerr, but for Jellyfin.\n\n## Requirements\nCurrently this script only works on Linux. There is a chance that the sample docker compose file will work on Windows, although untested.\nThe only requirements other than that are **Python 3** and **docker** with **docker-compose-v2**.\nWhile this script _may_ work on docker-compose-v1 it's made to be and highly recommended to be run using v2.\nThe easiest way to install these dependencies on Ubuntu and other Debian-based distors is by running:\n```\nsudo apt-get install python3 docker.io docker-compose-v2\n```\nFor other Linux distros you may have to use a different package manager or download directly from docker's website.\n\n## Using\n### Using the CLI\nTo make things easier, a CLI has been developed. First, clone the repository in a directory of your\nchoosing. You can run it by entering `python3 main.py` and the CLI will guide you through the\nprocess. This is the recommended method if you're setting this up for the first time on a new system. \nPlease take a look at [important notes](#important-notes) before you continue. \n**NOTE: This script will create users for each container with IDs ranging from 13001 to 13014. \nIf you want to choose your own IDs (or some of them are occupied) you have to go through the manual install.**\n\n### Manually\nIf you're installing this for the first time simply follow these steps. \nIf you're coming from an older version or reinstalling with different IDs, run `remove_old_users.sh` to clean up old users and then follow these steps.\n1. To get started, clone the repository in a directory of your choosing. `git clone https://github.com/Luctia/ezarr.git`\n2. Copy `.env.sample` to a real `.env` by running `$ cp .env.sample .env`.\n3. Set the environment variables to your liking. Pay special attention `ROOT_DIR` as this is where everything is going to be stored in. \n   The path in this value needs to be **absolute**. If you leave it empty it's going to install in the directory the .env file is currently in.\n   `UID` should be set to the ID of the user that you want to run docker with. You can find this by running `id -u` from that user's shell.\n4. Run `setup.sh` as superuser. This will set up your users, a system of directories and ensure permissions are set correctly.\n5. Copy `docker-compose.yml.sample` to a real `docker-compose.yml` by running `$ cp docker-compose.yml.sample docker-compose.yml`.\n6. Take a look at the `docker-compose.yml` file. If there are services you would like to ignore\n   (for example, running PleX and Jellyfin at the same time is a bit unusual), you can comment them\n   out by placing `#` in front of the lines. This ensures they are ignored by Docker compose. \n   Double check that your .env file is set up properly.\n7. Run `docker compose up -d` to start the containers. If it complains about permissions run the following commands to add your current user to the docker group and apply changes:\n    ```\n    sudo groupadd docker\n    sudo usermod -aG docker $USER\n    newgrp docker\n    ```\n    If it still doesn't work reboot your system.\n\nThat's it! Your containers are now up and you can continue to set up the settings in them. Please\ntake a look at [important notes](#important-notes) before you continue.\n\n## Important notes\n- You probably shouldn't run the python script as root. Ideally you should create a brand new user that's just for these services, but any regular user will do.\n  It will need your password for `sudo` to set up the permissions and folder structures, but you shouldn't run it *as* root.\n- If you already used this script previously and want to clean up old users, run `remove_old_users.sh`.\n  This is also recommended if you are updating from an earlier version of this script, since there were previously some conflicts in user IDs.\n- It is recommended to restart your system after script completion, so that newly created users and groups can be loaded properly.\n- When linking one service to another, remember to use the container name instead of `localhost`.\n- Please set the settings of the -arr containers as soon as possible to the following (use\n  advanced):\n  - Media management:\n    - Use hardlinks instead of Copy: `true`\n    - Root folder: `/data/media/` and then tv, movies or music depending on service\n  - qBittorrent ships with a default username `admin` and a one-time password that can be viewed by running `docker logs qbittorrent`.\n  - Make sure to set a username and password for all servarr services and qBittorrent!\n- In qBittorrent, after connecting it to the -arr services, you can indicate it should move\n  torrents in certain categories to certain directories, like torrents in the `radarr` category\n  to `/data/torrents/movies`. You should do this. Also set the `Default Save Path` to\n  `/data/torrents`. Set \"Run external program on torrent completion\" to true and enter this in the\n  field: `chmod -R 775 \"%F/\"`.\n- You'll have to add indexers in Prowlarr by hand. Use Prowlarrs settings to connect it to the\n  other -arr apps.\n\n### IMPORTANT IF USING NFS SHARES\n- NFS shares' permissions are mapped by user IDs. If you want to access a file as a client, your user ID needs to match the user ID of the owner (or group) of that file on the NFS server. \nNote that if you are a group member (and not the owner), having matching group IDs won't be enough, there also needs to be a corresponding user on the NFS server. The easiest way to make sure\nthe users and groups are set up on both sides correctly is to run `setup.sh` on both your NFS server and your client. \nOn your server:\n- Copy `.env` and `setup.sh` to your NFS server.\n- You may have to adjust `.env` so that `ROOT_DIR` reflects where it will be stored on your server, which is most likely different from the mapped location on the client.\n- Make sure that the `.env` file is not a .sample. Run `setup.sh`.\n- Now follow all the same steps but on your client machine. Always double-check that `.env` is set correctly, especially `ROOT_DIR`.\nYou don't have to do this on your server first but it's recommended. If you are running this script on the client **make sure that you temporarily enable -no-root-squash on your NFS server**, \nas the script needs superuser privileges to run and by default on NFS the root user is mapped to nowhere to prevent abuse.\n  \n### SABnzbd External internet access denied message\nWhen you're trying to access SABnzbd the first time you'll come across the message `External\ninternet access denied`. To fix this simple modify the `sabnzbd.ini` and change `inet_exposure` to\n`4`, restart the docker container for sabnzbd (`docker restart sabnzbd`) and now you can access the\nUI of SABnzbd (note: you may get a `Access denied - Hostname verification failed`, to fix this,\nsimply go to the IP of your server directly instead of the hostname). After accessing the UI don't\nforget to set a username and password (https://sabnzbd.org/wiki/configuration/3.7/general,\nsection Security).\n\nFor more instructions or help see also https://sabnzbd.org/wiki/extra/access-denied.html on the\nofficial SABnzbd website.\n\n## FAQ\n\n### How to update containers\nThere is an `update_containers.sh` script that takes care of this. Simply run it and it updates\nall containers and removes old images. If you want to keep them, simply comment out the last line of the script.\nIt's essentially the following steps but automated:\nIf you'd like to it manually, go to the directory of your `docker-compose.yml` file\nand run `(sudo) docker compose pull`. This pulls the newest versions of all images (blueprints for\ncontainers) listed in the `docker-compose.yml` file. Then, you can run `(sudo) docker compose up\n-d`. This will deploy the new versions without losing uptime. Afterwards, you can run `(sudo)\ndocker image prune` to remove the old images, freeing up space.\n\n### Why do I need to set some settings myself, can that be added?\nSome settings, particularly for the Servarr suite, are set in databases. While it *might* be\npossible to interact with this database after creation, I'd rather not touch these. It's not\nthat difficult to set them yourself, and quite difficult to do it automatically. For other\ncontainers, configuration files are automatically generated, so these are more easily edited,\nbut I currently don't believe this is worth the effort.\n\nOn top of the above, connecting the containers above would mean setting a password and creating an\nAPI key for all of them. This would lead to everyone using Ezarr having the same API key and user/\npassword combination. Personally, I'd rather trust users to figure this out on their own rather\nthan trusting them to change these passwords and keys.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLuctia%2Fezarr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLuctia%2Fezarr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLuctia%2Fezarr/lists"}