Files

41 lines
1.9 KiB
YAML
Raw Permalink Normal View History

# TrueNAS Scale "Custom App" definition.
#
# Adjust the host path and the user to match your pool. The Last.fm API key is
# a credential: set it through the app's environment in the TrueNAS UI rather
# than committing it here.
services:
music-curator:
image: code.emmathe.dev/lyrathorpe/music-curator:latest
container_name: music-curator
restart: unless-stopped
# The dataset owner, so the store is not written as root. `id apps` or the
# ownership of the dataset will tell you the right numbers.
user: "568:568"
environment:
MUSIC_CURATOR_LASTFM_USER: your-lastfm-username
# Get one at https://www.last.fm/api/account/create -- a key alone is
# enough, none of the endpoints used here authenticate a user.
MUSIC_CURATOR_LASTFM_API_KEY: set-me-in-the-truenas-ui
MUSIC_CURATOR_DB: /data/curator.db
# Lidarr, for indexing the library. Read-only: every call is a GET.
# Leave unset to ingest scrobbles and nothing else.
MUSIC_CURATOR_LIDARR_URL: http://lidarr:8686
MUSIC_CURATOR_LIDARR_API_KEY: set-me-in-the-truenas-ui
# How long to wait between passes. Each one catches up on new scrobbles
# and continues the backfill if it has not finished.
MUSIC_CURATOR_INTERVAL: 6h
# Seconds between API requests. Last.fm asks for no more than five a
# second; the default leaves plenty of room.
# MUSIC_CURATOR_REQUEST_DELAY: "0.25"
# Cap the backfill at this many requests per pass. Unlimited by default,
# which finishes a long history in one go.
# MUSIC_CURATOR_BACKFILL_LIMIT: "0"
# The MP3 mirror music-mirror maintains. Playlists are written into
# _playlists/ inside it; leave unset to skip them.
MUSIC_CURATOR_MIRROR: /mirror
# Most tracks in any one playlist.
# MUSIC_CURATOR_PLAYLIST_LIMIT: "100"
volumes:
- /mnt/tank/apps/music-curator:/data
- /mnt/tank/media/music-mp3:/mirror