Skip to content
Projects

About

Dockerized HTPC setup with *arr apps and addons

Self-hosted

How these counts are measured

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Dockarr

npm GitHub package.json version GitHub forks GitHub Repo stars GitHub issues npm

An opinionated CLI tool for installing and managing *arr applications, Plex Media Server, and various other services that make up a HTPC (Home Theater Personal Computer).

DISCLAIMER: The author or contributors do not claim ownership of any services listed or used in this repository and are not legally responsible for any improper or illegal use of this repository, it is provided for educational purposes only. All rights go to the owners of the software used.

Links

Available Services

Docker

  • Plex: Plex is a one-stop destination to stream movies, tv shows, sports & music
  • Unmanic: Unmanic is a simple tool for optimising your file library
  • Tautulli: Tautulli is a 3rd party application that you can run alongside your Plex Media Server to monitor activity and track various statistics
  • Sonarr: Sonarr is an internet PVR for Usenet and Torrents
  • Radarr: Radarr is an internet PVR for Usenet and Torrents
  • Bazarr: Bazarr is a companion application to Sonarr and Radarr that manages and downloads subtitles based on your requirements
  • Lidarr: Lidarr is a music collection manager for Usenet and BitTorrent users
  • Overseerr: Overseerr is a request management and media discovery tool built to work with your existing Plex ecosystem
  • SABnzbd: Usenet downloader tool
  • Prowlarr: Prowlarr is an indexer manager/proxy built on the popular arr .net/reactjs base stack to integrate with your various PVR apps
  • Deluge: Torrent downloader tool
  • Requestrr: Requestrr is a chatbot used to simplify using services like Sonarr/Radarr/Overseerr/Ombi via the use of chat!
  • Nginx-Proxy-Manager: Expose web services on your network · Free SSL with Let's Encrypt · Designed with security in mind · Perfect for home networks
  • Watchtower: A container-based solution for automating Docker container base image updates
  • Portainer: Lightweight service delivery platform for containerized applications that can be used to manage Docker, Swarm, Kubernetes and ACI environments.
  • Ubooquity: A free home server for your comics and ebooks library
  • Mylar3: A automated Comic Book (cbr/cbz) downloader program for use with NZB and torrents
  • Readarr: Readarr is a ebook collection manager for Usenet and BitTorrent users
  • EmulatorJS: Self hosted web based retro emulation front end with rom and art management.
  • HomeAssistant: Home Assistant allows you to get on top of your energy use with its home energy management feature.
  • Organizr: Organizr allows you to set up "Tabs" that will be loaded all in one webpage. You can then work on your server with ease.
  • Duplicati: Free backup software to store encrypted backups online
  • TubeSync: TubeSync is a PVR for YouTube
  • MeTube: Web GUI for youtube-dl. Allows you to download videos from YouTube and dozens of other sites.
  • Kitana: A responsive Plex plugin web frontend
  • LunaSea: LunaSea is a fully featured, open source self-hosted controller focused on giving you a seamless experience between all of your self-hosted media software remotely on your devices.
  • Petio: Petio is a third party companion app available to Plex server owners to allow their users to request, review and discover content.
  • ADGuardHome: AdGuard is the best way to get rid of annoying ads and online tracking and protect your computer from malware
  • xTeVe: M3U Proxy for Plex DVR and Emby Live TV
  • Mealie: An intuitive and easy to use recipe management app.
  • Kavita: Lighting fast with a slick design, Kavita is a rocket fueled self-hosted digital library which supports a vast array of file formats.
  • Jellyfin: Jellyfin is the volunteer-built media solution that puts you in control of your media. Stream to any device from your own server, with no strings attached. Your media, your server, your way.
  • Tunarr: Tunarr lets you build custom live TV channels out of your existing media libraries — movies, TV episodes, music videos, or local files — and stream them as if they were real broadcast channels.

Operating System

Installed via dockarr install <package name>

  • Plex Desktop | plex: Plex desktop client.
  • Plex Media Server | plexmediaserver: Plex media server (In case you don't want to run it in docker).
  • Spotify | spotify: Spotify is a digital music service that gives you access to millions of songs.
  • Steam | steam: Steam is the ultimate destination for playing, discussing, and creating games.
  • Tidal | tidal: TIDAL is an artist-first, fan-centered music streaming platform that delivers over 100 million songs in HiFi sound quality to the global music community.
  • Docker | docker: Docker is a platform designed to help developers build, share, and run modern applications. (Note: On Linux, this uses the official Docker convenience script from get.docker.com)

Getting started

Recommended Operating System

Ubuntu 22.04 +
Windows 10 +

Installing

You must have Node.JS & NPM installed, plus Docker with the Compose plugin (docker compose). You can install Docker with dockarr install docker.
To install dockarr run the following command:
npm install -g dockarr

You can now see the command options with dockarr --help

Starting the Stack

To create your first stack/deployment you will run the dockarr create [options] <name> command and supply your settings when asked. Services can be picked by name or by their number in the list, e.g. -s plex,sonarr,radarr. If you pick Deluge you will be asked for your VPN login (or pass --vpn false).

If you want to quick start you can copy the command below:
Linux: dockarr create -c /opt/htpc -d /mnt/Media -w /opt/htpc/tmp -s plex,sonarr,radarr,bazarr,prowlarr,seerr,tautulli,sabnzbd,deluge my-first-dockarr
Windows: dockarr create -c ./htpc -d ./Media -w ./htpc/tmp -s plex,sonarr,radarr,bazarr,prowlarr,seerr,tautulli,sabnzbd,deluge my-first-dockarr

create only writes the compose file. Start the stack with dockarr start my-first-dockarr. To change an existing deployment, re-run create with --force.

Now you can move to configuring the individual services via the links above in Service Links section below.

Updating the stack

In order to update the stack (pull new docker images and restart services), you can run dockarr update <name>. This pulls new docker images while your services keep running, then recreates only the containers whose image changed. Use -s to update specific services.

Stopping the stack

To stop the stack you can run dockarr stop <name>. This will simply just stop all the services, you can then simply run dockarr start <name> again to start the stack back up.

Deleting the stack

To delete the stack you just need to run dockarr remove <name>. This will stop and remove all services after asking for confirmation (skip it with -y).

Note: This does not remove media or configuration files for the HTPC.

Service Links

Explanation

Setting up a HTPC can be hard for most let alone doing it with best practices and security in mind. Unsatisfied with the installation tools out there currently, we have created and tested this cli tool in order to help ease some of those headaches and add in some nice-to-have features to make life a little easier. This started simply with wanting an easily deployable and producible script for Plex and companion apps and that is still the goal.

Security

While Dockarr aims to simplify deployment, it is important to follow security best practices:

  • Docker Socket: Services like Portainer and Watchtower require access to /var/run/docker.sock. This provides the container with near-root access to the host machine. Only use these services if you trust them and understand the risks.
  • Insecure Connections: By default, many services are exposed over plain HTTP. It is highly recommended to use a reverse proxy (like the included Nginx Proxy Manager) with SSL/TLS for all external access.
  • Secrets: The generated compose file (~/.dockarr/<name>/<name>.yaml) contains your Plex claim and VPN credentials, so Dockarr makes it readable only by your user. Note that anyone with access to Docker can still read container environment variables via docker inspect.
  • API Keys: Commands like get-api-keys fetch information over plain HTTP within your network. Ensure your local network is secure.
  • Image Versions: Dockarr currently uses :latest tags for ease of use and updates. For production environments, consider pinning to specific versions or digests in the generated compose files for better reproducibility.

Networking

All services are provided on a docker bridge network with host port mapping for each service. This way you can configure each service by navigating to http://<HTPC IP>:<service port> in your browser. Provided is nginx-proxy-manager in order to allow external access in the system. This would be done by port forwarding port 80 to your HTPC and configuring the NGINX proxy to point to the backend services via their hostnames.

When configuring a service to connect to another service there are a few ways to do this.

  1. (Recommended) Using the services hostname
    1. The docker bridge network that all services are connected to, also modifies each services hosts file to provide nice hostnames for each service. For instance, if you need prowlarr to connect to sonarr, you would put in prowlarr for sonarr's ip just sonarr and docker will resolve that to the proper IP for sonarr.
  2. Using the container IP
    1. Using docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' <container_name_or_id> will return the ip address of any running docker container in the stack. Then you simply put this in when asked for an ip to the service.
  3. Using the host IP
    1. Because each service has a host port mapping, you can use the host machine ip address to access each service. This is highly discouraged as it creates network loops that are not required. (Imagine going out your front door, into the garage, and then into the kitchen every time you want a snack)

Filesystem

There are 3 main parent directories created by this repository. You can configure them in the start.sh script.

  • Config Dir: This is where all configuration, SSL certs, and various persistent settings are stored. (We suggest this be on your main drive, SSD)
  • Data Dir: This is the Media parent directory. Here is where you Movies, TV Shows, Music, Photos, etc. are stored. (We suggest this be a mounted share from a NAS or SAN)
  • Work Dir: This is the working directory for all media. Files that are in the process of downloading or other various temp files are stored here. (We suggest this also be on your main drive, SSD)

Service Config

Services are left to set up however you choose via their UI as listed in Service Links section. However, there are some helper commands for you ex. (dockarr get-api-keys)

Development

  • npm run build compiles to bin/; run the CLI locally with node bin/src/cli.js.
  • npm test runs the unit tests in test/ (requires Node 21+). They also check every compose template for unknown placeholders, missing PGID, duplicate container names and host port conflicts, so run them after adding a service.

Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Explore related projects

Loading…