# Yarr Media for NAS boxes: Synology Container Manager, QNAP Container Station, # TrueNAS SCALE / Community Edition 24.10+ (Apps > Custom app > YAML), # OpenMediaVault (compose plugin) and any other Docker Compose host. # Guide: docs/nas.md. Set the values in nas.env (or the NAS's environment # fields); only YARR_MEDIA_DIR and YARR_DATA_DIR are required. name: yarr-media services: yarr: image: ghcr.io/blarkin13/yarr-media:${YARR_CHANNEL:-stable} container_name: yarr-media restart: unless-stopped # Run as the NAS user that can read your media share (Synology: `id` over # SSH, often 1026:100; Unraid: 99:100; TrueNAS apps user: 568:568). user: "${YARR_UID:-10001}:${YARR_GID:-10001}" environment: MEDIA_ROOT: /media DATABASE_PATH: /data/library.sqlite3 TZ: ${TZ:-UTC} # IPv4 only, like the Linux installer: Docker's IPv6 proxy would hide an # internet caller's address. Never forward this port on your router. ports: - "0.0.0.0:${YARR_PORT:-8787}:8787" volumes: # Media is read-only: Yarr never changes, moves or deletes your files. - "${YARR_MEDIA_DIR:?set YARR_MEDIA_DIR to your media share}:/media:ro" # Database, artwork and settings. Must be writable by YARR_UID. - "${YARR_DATA_DIR:?set YARR_DATA_DIR to a folder for Yarr's data}:/data" # Intel Quick Sync (Synology "+" models with Intel CPUs, most Intel QNAPs, # TrueNAS/OMV on Intel): uncomment, and set YARR_RENDER_GID to the group of # /dev/dri/renderD128 (`stat -c %g /dev/dri/renderD128`). # devices: # - /dev/dri/renderD128:/dev/dri/renderD128 # group_add: # - "${YARR_RENDER_GID:-0}" security_opt: - no-new-privileges:true healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8787/health', timeout=3)"] interval: 30s timeout: 5s retries: 3 # Optional Pro remote access (start with `--profile remote`). An HTTPS front # door that only gets a certificate for this home's own a-b-c-d.sslip.io name # and marks every request remote, so a Yarr pass is required. Most NAS web # interfaces already use 443: pick a free YARR_HTTPS_PORT (e.g. 8443) and on # the router forward external TCP 443 to that port on the NAS. https: profiles: ["remote"] image: caddy:2 container_name: yarr-media-https restart: unless-stopped depends_on: [yarr] ports: - "${YARR_HTTPS_PORT:-443}:443" volumes: - ./Caddyfile:/etc/caddy/Caddyfile:ro - "${YARR_DATA_DIR}/caddy:/data" security_opt: - no-new-privileges:true