gates / gates (push) Successful in 3s
sonarr/radarr: one media bind, declared excluded; first start seeds AuthenticationRequired=Enabled (R-1030); first steps hu+en. qbittorrent/transmission: only their download folder at the same path, /downloads kept for old torrents, default folders moved at start; transmission watch declared optional (R-1019). plex/jellyfin: /media/tv (R-1015). onboarding 2.2 rows (R-1016). Evidence: felhom.eu documentation/audits/media-folder-fix-2026-10-14/.
73 lines
3.0 KiB
YAML
73 lines
3.0 KiB
YAML
# Sonarr - Automatikus sorozat letöltő és rendszerező
|
|
# Domain: ${SUBDOMAIN}.${DOMAIN}
|
|
# Database: None (file-based)
|
|
# RAM: ~150M (mem_limit: 512M) | Pi-compatible: Yes
|
|
#
|
|
# Environment variables:
|
|
# DOMAIN - Your domain (e.g., demo-felhom.eu)
|
|
# USERDATA_PATH - Ügyfél-tartalom gyökér (<namespace>/userdata)
|
|
#
|
|
# Storage layout (felhom userdata convention, R-1014, operator ruling 2026-10-14 D9 = A with a limit):
|
|
# ONE bind: ${USERDATA_PATH}/media at the SAME path inside the container as on the box.
|
|
# Sorozattár → ${USERDATA_PATH}/media/tv
|
|
# Downloads → ${USERDATA_PATH}/media/torrents (qBittorrent) or media/transmission (Transmission);
|
|
# the download app reports exactly this path, so no path translation is needed.
|
|
# Why ONE bind: two bind mounts are two mount points, and link(2) answers EXDEV between them even on one
|
|
# filesystem: the import would be a full copy (measured, felhom.eu audits/media-all-drives-2026-10-14/S1).
|
|
# Inside one mount the import is a hardlink: one file, two names, no extra space.
|
|
# The download apps see ONLY their own download folder; this app sees the media folder because it must.
|
|
# Run-identity: PUID/PGID 1000 (shared content group); UMASK=002 → group-writable output.
|
|
|
|
services:
|
|
sonarr:
|
|
image: lscr.io/linuxserver/sonarr:4.0.20
|
|
container_name: sonarr
|
|
restart: unless-stopped
|
|
# R-1030: on the FIRST start only, the settings file is seeded with „Authentication Required: Enabled", so the
|
|
# first-admin form offers „Enabled": not „Disabled for Local Addresses", which lets every device on the home
|
|
# network and every other container on the box in without a sign-in, the API key included (measured
|
|
# 2026-10-14). The app fills in everything else itself; a household's later choice is never overwritten.
|
|
entrypoint:
|
|
- /bin/sh
|
|
- -c
|
|
- |
|
|
if [ ! -f /config/config.xml ]; then
|
|
printf '<Config>\n <AuthenticationRequired>Enabled</AuthenticationRequired>\n</Config>\n' > /config/config.xml
|
|
echo "[felhom] first start - AuthenticationRequired=Enabled seeded"
|
|
fi
|
|
exec /init
|
|
environment:
|
|
- TZ=Europe/Budapest
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- UMASK=002
|
|
volumes:
|
|
- sonarr_config:/config
|
|
- ${USERDATA_PATH}/media:${USERDATA_PATH}/media
|
|
networks:
|
|
- traefik-public
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 512M
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://127.0.0.1:8989/ping"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 30s
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.sonarr.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
|
|
- "traefik.http.routers.sonarr.entrypoints=websecure"
|
|
- "traefik.http.routers.sonarr.tls=true"
|
|
- "traefik.http.routers.sonarr.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.sonarr.loadbalancer.server.port=8989"
|
|
|
|
volumes:
|
|
sonarr_config:
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true
|