391 lines
12 KiB
YAML
391 lines
12 KiB
YAML
# media stack — *arr suite, download clients, and media utilities.
|
|
# All config/data is bind-mounted to /config and /storage1 already (no named
|
|
# volumes to migrate). Services join the private `media` net for inter-app
|
|
# traffic (prowlarr<->sonarr/radarr) and `edge` so Caddy can proxy them.
|
|
#
|
|
# Env convention: every service gets stack.env via env_file; var names there are
|
|
# exactly what the containers read (PUID/PGID/TZ), so no ${VAR} interpolation
|
|
# and no Portainer UI env vars are needed. Service-specific settings stay in
|
|
# per-service environment blocks.
|
|
|
|
services:
|
|
nzbget:
|
|
container_name: nzbget
|
|
image: lscr.io/linuxserver/nzbget:latest
|
|
restart: unless-stopped
|
|
networks: [media, edge]
|
|
env_file:
|
|
- stack.env
|
|
volumes:
|
|
- /storage1/complete:/downloads
|
|
- /config/nzbget:/config
|
|
ports:
|
|
- "6789:6789"
|
|
|
|
sonarr:
|
|
container_name: sonarr
|
|
image: lscr.io/linuxserver/sonarr:latest
|
|
restart: unless-stopped
|
|
networks: [media, edge]
|
|
env_file:
|
|
- stack.env
|
|
ulimits:
|
|
nofile: { soft: 65536, hard: 65536 }
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /config/sonarr:/config
|
|
# Unified /storage1 mount enables atomic hardlinks between /storage1/complete
|
|
# and /storage1/{TV,Anime} (separate /tv + /downloads mounts force EXDEV copies).
|
|
# Legacy mounts kept temporarily during root-folder migration.
|
|
- /storage1:/storage1
|
|
- /storage1/Media/TV:/tv
|
|
- /storage1/Media/Anime:/anime
|
|
- /storage1/complete:/downloads
|
|
ports:
|
|
- "8989:8989"
|
|
|
|
radarr:
|
|
container_name: radarr
|
|
image: lscr.io/linuxserver/radarr:latest
|
|
restart: unless-stopped
|
|
networks: [media, edge]
|
|
env_file:
|
|
- stack.env
|
|
ulimits:
|
|
nofile: { soft: 65536, hard: 65536 }
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /config/radarr:/config
|
|
# Unified /storage1 mount enables atomic hardlinks between /storage1/complete
|
|
# and /storage1/Movies (separate /movies + /downloads mounts force EXDEV copies).
|
|
# Legacy mounts kept temporarily during root-folder migration.
|
|
- /storage1:/storage1
|
|
- /storage1/Media/Movies:/movies
|
|
- /storage1/complete:/downloads
|
|
ports:
|
|
- "7878:7878"
|
|
|
|
bazarr:
|
|
container_name: bazarr
|
|
image: lscr.io/linuxserver/bazarr:latest
|
|
restart: unless-stopped
|
|
networks: [media, edge]
|
|
env_file:
|
|
- stack.env
|
|
ulimits:
|
|
nofile: { soft: 65536, hard: 65536 }
|
|
environment:
|
|
- UMASK_SET=022
|
|
volumes:
|
|
- /config/bazarr:/config
|
|
# Unified /storage1 mount keeps subtitle paths in sync once Sonarr/Radarr move to /storage1/*.
|
|
- /storage1:/storage1
|
|
- /storage1/Media/Movies:/movies
|
|
- /storage1/Media/TV:/tv
|
|
- /storage1/Media/Anime:/anime
|
|
ports:
|
|
- "6767:6767"
|
|
|
|
prowlarr:
|
|
container_name: prowlarr
|
|
image: ghcr.io/hotio/prowlarr:latest
|
|
restart: unless-stopped
|
|
networks: [media, edge]
|
|
env_file:
|
|
- stack.env
|
|
ulimits:
|
|
nofile: { soft: 65536, hard: 65536 }
|
|
environment:
|
|
- UMASK=002
|
|
volumes:
|
|
- /config/prowlarr:/config
|
|
ports:
|
|
- "9696:9696"
|
|
|
|
seerr:
|
|
container_name: seerr
|
|
image: ghcr.io/seerr-team/seerr:latest
|
|
init: true
|
|
restart: unless-stopped
|
|
networks: [media, edge]
|
|
env_file:
|
|
- stack.env
|
|
environment:
|
|
- UMASK=002
|
|
volumes:
|
|
- /config/overseerr:/app/config
|
|
ports:
|
|
- "5055:5055"
|
|
|
|
tautulli:
|
|
image: ghcr.io/linuxserver/tautulli:latest
|
|
container_name: tautulli
|
|
restart: unless-stopped
|
|
networks: [media, edge]
|
|
env_file:
|
|
- stack.env
|
|
volumes:
|
|
- /config/tautulli:/config
|
|
- /storage1/PMS:/logs
|
|
ports:
|
|
- "8181:8181"
|
|
|
|
qbittorrent:
|
|
# Pinned to the last 5.2.x build (downgraded from 5.3.0); Watchtower off so it stays put.
|
|
image: lscr.io/linuxserver/qbittorrent:5.2.4_v2.0.15-ls481
|
|
container_name: qbittorrent
|
|
restart: unless-stopped
|
|
labels:
|
|
- com.centurylabs.watchtower.enable=false
|
|
networks: [media, edge]
|
|
env_file:
|
|
- stack.env
|
|
environment:
|
|
- WEBUI_PORT=3232
|
|
# 6881-6889 is banned on many private trackers; 43817 is forwarded on OPNsense.
|
|
- TORRENTING_PORT=43817
|
|
volumes:
|
|
- /config/qbittorrent:/config
|
|
- /storage1/complete:/downloads
|
|
# Same-path /storage1 mount so cross-seed's hardlinks (which must live on the
|
|
# same container mount as their source) resolve identically in both containers.
|
|
- /storage1:/storage1
|
|
ports:
|
|
- "3232:3232"
|
|
- "43817:43817"
|
|
- "43817:43817/udp"
|
|
|
|
# cross-seed: matches library files against private-tracker uploads and injects
|
|
# them into qbittorrent as hardlinks under /storage1/cross-seed-links. No web UI;
|
|
# config is host-managed at /config/cross-seed/config.js (secrets via process.env).
|
|
cross-seed:
|
|
image: ghcr.io/cross-seed/cross-seed:6
|
|
container_name: cross-seed
|
|
restart: unless-stopped
|
|
networks: [media]
|
|
user: 1000:1000
|
|
env_file:
|
|
- stack.env
|
|
command: daemon
|
|
volumes:
|
|
- /config/cross-seed:/config
|
|
- /storage1:/storage1
|
|
|
|
# autobrr: grabs freeleech uploads from tracker IRC announces into qbittorrent
|
|
# (category autobrr) and forwards every announce to cross-seed. Native OIDC via
|
|
# Authentik (homelab-autobrr, pk 48); built-in login disabled.
|
|
autobrr:
|
|
image: ghcr.io/autobrr/autobrr:latest
|
|
container_name: autobrr
|
|
restart: unless-stopped
|
|
networks: [media, edge]
|
|
user: 1000:1000
|
|
env_file:
|
|
- stack.env
|
|
volumes:
|
|
- /config/autobrr:/config
|
|
ports:
|
|
- "7474:7474"
|
|
|
|
whisparr:
|
|
container_name: whisparr
|
|
image: ghcr.io/hotio/whisparr:latest
|
|
restart: unless-stopped
|
|
networks: [media, edge]
|
|
env_file:
|
|
- stack.env
|
|
ulimits:
|
|
nofile: { soft: 65536, hard: 65536 }
|
|
environment:
|
|
- UMASK=002
|
|
- WEBUI_PORTS=6969/tcp
|
|
volumes:
|
|
- /config/whisparr:/config
|
|
- /storage1:/data
|
|
ports:
|
|
- "6969:6969"
|
|
|
|
recyclarr:
|
|
image: ghcr.io/recyclarr/recyclarr:8
|
|
container_name: recyclarr
|
|
restart: unless-stopped
|
|
networks: [media]
|
|
user: 1000:1000
|
|
env_file:
|
|
- stack.env
|
|
volumes:
|
|
# Absolute path: ./recyclarr resolved to Portainer's internal
|
|
# /data/compose/10/... and bound an EMPTY dir from 2026-06-17 to 2026-11-21,
|
|
# so recyclarr never synced. Canonical config is stacks/media/recyclarr/;
|
|
# scp recyclarr.yml + secrets.yml to /config/recyclarr/ after edits.
|
|
- /config/recyclarr:/config
|
|
|
|
stash:
|
|
image: stashapp/stash:latest
|
|
container_name: stash
|
|
restart: unless-stopped
|
|
networks: [media, edge]
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-file: "10"
|
|
max-size: "2m"
|
|
env_file:
|
|
- stack.env
|
|
environment:
|
|
- STASH_STASH=/data/
|
|
- STASH_GENERATED=/generated/
|
|
- STASH_METADATA=/metadata/
|
|
- STASH_CACHE=/cache/
|
|
- STASH_PORT=6970
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /config/stash:/root/.stash
|
|
- /storage1/LinuxISOs:/data
|
|
- /storage1/stash/metadata:/metadata
|
|
- /storage1/stash/cache:/cache
|
|
- /storage1/stash/blobs:/blobs
|
|
- /storage1/stash/generated:/generated
|
|
ports:
|
|
- "6971:6970"
|
|
|
|
# ============================================================ BOOKS
|
|
# Prowlarr -> chaptarr -> qbittorrent/nzbget (/storage1/complete). Chaptarr
|
|
# imports ebooks into the CWA ingest folder (CWA owns the Calibre library and
|
|
# deletes ingested files) and audiobooks straight into the ABS library.
|
|
# Storyteller reads both libraries read-only and writes aligned EPUBs to its
|
|
# own /data. Readarr is retired upstream — do not add it.
|
|
chaptarr:
|
|
container_name: chaptarr
|
|
image: chaptarr/chaptarr:latest
|
|
restart: unless-stopped
|
|
networks: [media, edge]
|
|
env_file:
|
|
- stack.env
|
|
ulimits:
|
|
nofile: { soft: 65536, hard: 65536 }
|
|
environment:
|
|
- UMASK=002
|
|
volumes:
|
|
- /config/chaptarr:/config
|
|
- /storage1/complete:/downloads
|
|
- /storage1/complete/books-ingest:/ebooks
|
|
- /storage1/Media/Audiobooks:/audiobooks
|
|
ports:
|
|
- "8789:8789"
|
|
|
|
calibre-web-automated:
|
|
container_name: calibre-web-automated
|
|
image: crocodilestick/calibre-web-automated:latest
|
|
restart: unless-stopped
|
|
networks: [media, edge]
|
|
env_file:
|
|
- stack.env
|
|
environment:
|
|
- NETWORK_SHARE_MODE=false
|
|
volumes:
|
|
- /config/calibre-web-automated:/config
|
|
- /storage1/complete/books-ingest:/cwa-book-ingest
|
|
- /storage1/Media/Books:/calibre-library
|
|
ports:
|
|
- "8083:8083"
|
|
|
|
audiobookshelf:
|
|
container_name: audiobookshelf
|
|
image: ghcr.io/advplyr/audiobookshelf:latest
|
|
restart: unless-stopped
|
|
networks: [media, edge]
|
|
env_file:
|
|
- stack.env
|
|
volumes:
|
|
- /config/audiobookshelf/config:/config
|
|
- /config/audiobookshelf/metadata:/metadata
|
|
- /storage1/Media/Audiobooks:/audiobooks
|
|
ports:
|
|
- "13378:80"
|
|
|
|
storyteller:
|
|
container_name: storyteller
|
|
# CUDA 12.9 build so whisper runs on the P100 (~6x the CPU build). CUDA 13.x
|
|
# images drop Pascal. Upstream publishes CUDA images only as commit-SHA tags
|
|
# (no :latest), so this is pinned and out of Watchtower; bump the tag by hand
|
|
# from the registry's amd64-cuda-12.9.0 repository.
|
|
# 67260c54 = web-v3.0.0-beta.51 (main is the v3 beta; stable v2.14.23 is
|
|
# deb8bbf4). The v2->v3 DB migration ran 2026-10-18; its pre-migration
|
|
# backup is /storage1/labdata/storyteller/backups/storyteller-pre-v3-*.db.
|
|
image: registry.gitlab.com/storyteller-platform/storyteller/amd64-cuda-12.9.0:67260c54
|
|
restart: unless-stopped
|
|
labels:
|
|
- "com.centurylabs.watchtower.enable=false"
|
|
networks: [media, edge]
|
|
env_file:
|
|
- stack.env # STORYTELLER_SECRET_KEY lives here
|
|
devices:
|
|
- nvidia.com/gpu=0
|
|
environment:
|
|
# The whisper build has no sm_60 kernels, so the P100 JIT-compiles PTX on
|
|
# first use (~60 s). Persist the JIT cache so that only happens once.
|
|
- CUDA_CACHE_PATH=/data/.nv-compute-cache
|
|
- CUDA_CACHE_MAXSIZE=4294967296
|
|
volumes:
|
|
- /storage1/labdata/storyteller:/data
|
|
- /storage1/Media/Books:/libraries/books:ro
|
|
- /storage1/Media/Audiobooks:/libraries/audiobooks:ro
|
|
ports:
|
|
- "8001:8001"
|
|
|
|
courarr:
|
|
container_name: courarr
|
|
# Seasonal anime lists from AniList (no key, no OAuth), mapped to TVDB via
|
|
# Fribb/anime-lists. Replaces the Trakt "latest-anime" list whose OAuth
|
|
# lapsed 2024-12-02. Sonarr reads http://courarr:6161/feed/<slug> over the
|
|
# media network; lists/settings/API key live in /config/courarr/courarr.db.
|
|
image: ghcr.io/jpjoseph12/courarr:latest
|
|
restart: unless-stopped
|
|
networks: [media, edge]
|
|
env_file:
|
|
- stack.env
|
|
volumes:
|
|
- /config/courarr:/config
|
|
ports:
|
|
- "6161:6161"
|
|
|
|
mam-bonus:
|
|
container_name: mam_bonus
|
|
# Once a day, spend MAM bonus points on upload credit (json/bonusBuy.php,
|
|
# spendtype=upload, "Max Affordable ") so seedbonus never caps out. Uses its
|
|
# own dedicated MAM session (MAM_BONUS_MAM_ID); the rotating cookie is kept
|
|
# in /config/mam-bonus. Failures go to ntfy topic `mam`.
|
|
image: alpine:3.20
|
|
restart: unless-stopped
|
|
networks: [edge] # egress + ntfy:80 for failure alerts
|
|
env_file:
|
|
- stack.env
|
|
volumes:
|
|
# Absolute host path on purpose: a relative ./ mount resolves to
|
|
# /data/compose/<id>/... (Portainer-internal) and binds an EMPTY host dir.
|
|
# Canonical copy is stacks/media/mam-bonus/buy-upload.sh; scp it here.
|
|
- /config/mam-bonus/buy-upload.sh:/app/buy-upload.sh:ro
|
|
- /config/mam-bonus:/data
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
command:
|
|
- |
|
|
apk add --no-cache curl jq tzdata >/dev/null
|
|
# crond jobs get a bare env, so hand the job its vars via a file
|
|
printenv | grep -E '^(MAM_BONUS_|TZ=)' | sed "s/^\([^=]*\)=\(.*\)/export \1='\2'/" > /etc/mam-bonus.env
|
|
chmod 600 /etc/mam-bonus.env
|
|
# busybox crond silently skips a crontab not owned by root
|
|
echo '17 4 * * * . /etc/mam-bonus.env && /bin/sh /app/buy-upload.sh >> /proc/1/fd/1 2>&1' > /etc/crontabs/root
|
|
chown root:root /etc/crontabs/root && chmod 600 /etc/crontabs/root
|
|
exec crond -f -l 8 -c /etc/crontabs
|
|
labels:
|
|
- "com.centurylabs.watchtower.enable=false"
|
|
|
|
networks:
|
|
media:
|
|
name: media
|
|
driver: bridge
|
|
edge:
|
|
name: edge
|
|
external: true
|