Files
music-mirror/compose.yaml
Emma Thorpe 8c3e554c88
Build and publish container / build (pull_request) Successful in 1m42s
docs: show the FAT32 setting in the compose file
The option table listed it, but compose.yaml is what actually gets copied into
a TrueNAS Custom App, so an option absent from there is an option nobody finds.

Quoted deliberately: an unquoted yes or true is a YAML 1.1 boolean, and compose
rejects a boolean as an environment value outright.
2026-08-25 11:08:12 +01:00

37 lines
1.6 KiB
YAML

# TrueNAS Scale "Custom App" definition.
#
# Adjust the two host paths and the user to match your pool. The source is
# mounted read-only on purpose: nothing here should ever be able to write to
# the lossless library.
services:
music-mirror:
image: code.emmathe.dev/lyrathorpe/music-mirror:latest
container_name: music-mirror
restart: unless-stopped
# The dataset owner, so the mirror is not written as root. `id apps` or the
# ownership of the mirror dataset will tell you the right numbers.
user: "568:568"
environment:
MUSIC_MIRROR_SOURCE: /music
MUSIC_MIRROR_MIRROR: /mirror
# LAME V0 averages about 245 kbps. Use 256 for constant bitrate instead.
MUSIC_MIRROR_QUALITY: V0
# How long to wait between passes. Lidarr imports are picked up on the
# next one.
MUSIC_MIRROR_INTERVAL: 6h
# Concurrent encodes; defaults to the CPU count. Lower it to leave the
# NAS responsive during the first full pass.
# MUSIC_MIRROR_JOBS: "4"
# Name files so a FAT32 device will take them, for copying to a Rockbox
# player. Quoted, because an unquoted yes or true is a YAML boolean and
# compose rejects a boolean here. Accepts 1, true or yes.
#
# Turning this on renames every file whose name held a reserved
# character. They are moved, not re-encoded, so the first pass after
# enabling it is quick -- but it is a one-way change to every such path,
# so decide before running it rather than after.
MUSIC_MIRROR_FAT32_SAFE: "true"
volumes:
- /mnt/tank/media/music:/music:ro
- /mnt/tank/media/music-mp3:/mirror