Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ Every stack starts from the same [standard setup](documentation/standard-setup.m
| **Configarr** | Tool that applies YAML settings and TRaSH Guides profiles to Radarr and Sonarr, then exits. | [Details](services/configarr) |
| **FreshRSS** | RSS and Atom feed reader that uses SQLite, with no separate database server. | [Details](services/freshrss) |
| **Fusion** | Lightweight feed reader for RSS, Atom, and JSON feeds, with a Fever API. | [Details](services/fusion) |
| **HolyArrs** | Manager for shows, movies, and music, from requests and downloads to your library, in one app. | [Details](services/holyarrs) |
| **Hytale** | Hytale game server in a community image, for players on your Tailnet. | [Details](services/hytale) |
| **ImageMaid** | Cleaner that removes unused poster and background images from the Plex metadata folder. | [Details](services/imagemaid) |
| **Immich** | Photo and video library that backs up mobile media, with search and sharing. | [Details](services/immich) |
Expand Down
26 changes: 26 additions & 0 deletions services/holyarrs/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#URL=https://github.com/tailscale-dev/ScaleTail
# To run a second copy, copy the folder under another name and change SERVICE.

# Service Configuration
# Service name (e.g., adguard). Used as hostname in Tailscale and for container naming, such as app- followed by the name.
SERVICE=holyarrs
# Docker image URL from container registry (e.g., adguard/adguardhome:latest).
IMAGE_URL=holyarrs/holyarrs:latest

# Network Configuration
# Port to expose to local network. Uncomment the "ports:" section in compose.yaml to enable.
SERVICEPORT=6262
# Preferred DNS server for Tailscale. Uncomment the "dns:" section in compose.yaml to enable.
DNS_SERVER=9.9.9.9

# Tailscale Configuration
# Auth key from https://console.tailscale.com/admin/settings/keys. See: https://tailscale.com/kb/1085/auth-keys#generate-an-auth-key for instructions.
TS_AUTHKEY=

# Time Zone setting for containers. See: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TZ=Europe/Amsterdam

# Any Container environment variables are declared below. See https://docs.docker.com/compose/how-tos/environment-variables/

# Required: your Tailnet name, the part between the service name and ".ts.net" in https://holyarrs.<tailnet name>.ts.net, for example tail1234.
TAILNET_NAME=
50 changes: 50 additions & 0 deletions services/holyarrs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# HolyArrs

[HolyArrs](https://github.com/HolyArrs/HolyArrs) is one app that manages your shows, movies, and music, from requests and downloads to your library.

This stack runs HolyArrs with a Tailscale sidecar, as described in [the standard setup](../../documentation/standard-setup.md).

## At a glance

| Item | Value |
| ------------- | ----------------------------------- |
| Web interface | `https://holyarrs.<tailnet>.ts.net` |
| Service port | `6262` |
| Image | `holyarrs/holyarrs` |
| Data | `./holyarrs-data/` |

## Before you start

- **`TAILNET_NAME`.** Set it in `.env` to your Tailnet name, the part between the service name and `.ts.net`, for example `tail1234`. Compose stops with an error until it is set. `compose.yaml` builds the allowed host name `<SERVICE>.<TAILNET_NAME>.ts.net` from it.
- **Data folder.** HolyArrs expects one folder with your downloads and your media, mounted at `/data`, so that a finished download reaches your library as a hardlink or a move instead of a copy. Point the `/data` volume in `compose.yaml` at that folder on the host, and mount it at `/data` in your download client too. Without a change, it is the empty folder `./holyarrs-data/data`.
- **Folder owner.** HolyArrs runs as user and group `1000` and does not change the owner of the data folder. Docker creates a missing folder as `root`. Create the folders before the first start and give them to `1000`, for example with `mkdir -p holyarrs-data/data/downloads holyarrs-data/data/media/movies holyarrs-data/data/media/tv holyarrs-data/data/media/music` and `sudo chown -R 1000:1000 holyarrs-data/data`. HolyArrs refuses a Library folder that does not exist.
- **Local disk.** Keep `./holyarrs-data/app/config` on a local disk. HolyArrs refuses a config folder on a network share or in memory, because its databases need working file locks.

## Deviations from the standard setup

- **Allowed host name.** `HOLYARRS_ALLOWED_HOSTS` in `compose.yaml` holds the Tailnet address of the service, built from `SERVICE` and `TAILNET_NAME`. HolyArrs accepts only IP addresses, `localhost`, and the host names it knows. Without this value it answers `403 Forbidden` to every save made through `https://holyarrs.<tailnet>.ts.net`, including the creation of the owner account.
- **Trusted proxy.** `HOLYARRS_TRUSTED_PROXIES=127.0.0.1` tells HolyArrs that Tailscale Serve, which forwards from inside the shared network namespace, is a proxy. HolyArrs then trusts its `X-Forwarded-For` and `X-Forwarded-Proto` headers, sets the `Secure` flag on its session cookie, and uses the real client address for sign-in limits and single sign-on.

## First run

Open the web interface and create the owner account right away. HolyArrs has no default password, and whoever opens a new install first becomes the owner. The setup that follows asks where your media is: enter the folders under `/data`, such as `/data/media/movies`, `/data/media/tv`, and `/data/media/music`.

HolyArrs encrypts stored passwords and keys with a master key, which it creates at the first start as `./holyarrs-data/app/config/holyarrs.key`. Backups do not contain this key. Keep a copy somewhere else, for example with **Download key kit** under Settings > Backups.

## Configuration

- **Remote access plugin.** HolyArrs has its own Tailscale plugin for remote access. This stack does not need it: the sidecar already puts HolyArrs on your Tailnet with an auth key, direct connections, and an HTTPS certificate. Do not install the plugin as well. It joins your Tailnet as a second device, signed in through the web interface and always over Tailscale's relays, and its default device name `holyarrs` is the same as the one of this stack.

## Troubleshooting

- **"Saving is blocked because HolyArrs doesn't know the name …".** The address in your browser differs from `HOLYARRS_ALLOWED_HOSTS`. Check that `TAILNET_NAME` holds only your Tailnet name, without `.ts.net`, and that the device is called `holyarrs` in your Tailnet, not `holyarrs-1`. Fix `.env` and run `docker compose up -d --force-recreate`.
- **Checks.** The image has no shell, so `docker exec` runs only HolyArrs' own commands. `docker exec app-holyarrs /holyarrs doctor` checks the config folder, the data folders, the network, and the clock, and says how to fix each problem.

## Links

- [HolyArrs documentation](https://docs.holyarrs.com)
- [Install with Docker](https://docs.holyarrs.com/start/install/)
- [Folders](https://docs.holyarrs.com/start/folders/)
- [Environment variables](https://docs.holyarrs.com/reference/env-vars/)
- [HolyArrs source code](https://github.com/HolyArrs/HolyArrs)
- [HolyArrs on Docker Hub](https://hub.docker.com/r/holyarrs/holyarrs)
70 changes: 70 additions & 0 deletions services/holyarrs/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
configs:
ts-serve:
content: |
{"TCP":{"443":{"HTTPS":true}},
"Web":{"$${TS_CERT_DOMAIN}:443":
{"Handlers":{"/":
{"Proxy":"http://127.0.0.1:6262"}}}},
"AllowFunnel":{"$${TS_CERT_DOMAIN}:443":false}}

services:
# Make sure you have updated/checked the .env file with the correct variables.
# Every variable used in this file must be defined there, unless it has a default such as ${VAR:-value}.
# Tailscale Sidecar Configuration
tailscale:
image: tailscale/tailscale:latest # Image to be used
container_name: tailscale-${SERVICE} # Name for local container management
hostname: ${SERVICE} # Name used within your Tailscale environment
environment:
- TS_AUTHKEY=${TS_AUTHKEY}
- TS_STATE_DIR=/var/lib/tailscale
- TS_SERVE_CONFIG=/config/serve.json # Tailscale Serve configuration to expose the web interface on your local Tailnet - remove this line if not required
- TS_USERSPACE=false
- TS_ENABLE_HEALTH_CHECK=true # Enable healthcheck endpoint: "/healthz"
- TS_LOCAL_ADDR_PORT=127.0.0.1:41234 # The <addr>:<port> for the healthz endpoint
#- TS_ACCEPT_DNS=true # Uncomment only if the service must resolve MagicDNS names - this replaces Docker DNS, so Compose service names no longer resolve
- TS_AUTH_ONCE=true
configs:
- source: ts-serve
target: /config/serve.json
volumes:
- ./config:/config # Config folder used to store Tailscale files - you may need to change the path
- ./ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
devices:
- /dev/net/tun:/dev/net/tun # Network configuration for Tailscale to work
cap_add:
- net_admin # Tailscale requirement
#ports:
# - 0.0.0.0:${SERVICEPORT}:${SERVICEPORT} # Binding the service port to the local network - may be removed if only exposure to your Tailnet is required
# If any DNS issues arise, use your preferred DNS provider by uncommenting the config below
#dns:
# - ${DNS_SERVER}
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:41234/healthz"] # Check Tailscale has a Tailnet IP and is operational
interval: 1m # How often to perform the check
timeout: 10s # Time to wait for the check to succeed
retries: 3 # Number of retries before marking as unhealthy
start_period: 10s # Time to wait before starting health checks
restart: always

# Application
application:
image: ${IMAGE_URL} # Image to be used
network_mode: service:tailscale # Sidecar configuration to route the service through Tailscale
container_name: app-${SERVICE} # Name for local container management
environment: # Variables are declared in .env file.
# HolyArrs reads PUID and PGID: it gives the config folder to this user and group, then runs as them.
- PUID=1000
- PGID=1000
- TZ=${TZ}
- HOLYARRS_ALLOWED_HOSTS=${SERVICE}.${TAILNET_NAME:?Set TAILNET_NAME in .env}.ts.net # Without the Tailnet address, HolyArrs refuses every save made through it
- HOLYARRS_TRUSTED_PROXIES=127.0.0.1 # Tailscale Serve, which forwards from inside the shared network namespace
volumes:
- ./${SERVICE}-data/app/config:/config # Databases, settings, the master key, backups, and logs - keep it on a local disk
- ./${SERVICE}-data/data:/data # One folder with your downloads and media, so imports are hardlinks or moves - point it at your data folder
depends_on:
tailscale:
condition: service_healthy
restart: true # Restart this service when Compose restarts the sidecar, whose network it uses
# Healthcheck: defined by the image (/holyarrs -healthcheck, which calls http://127.0.0.1:6262/healthz), so this file does not override it.
restart: always # A restore exits with status 75 and relies on the restart to apply it