Uses spotdl Python library to download a spotify playlist into specified folder and keeps it up-to-date. Personally, I use it for my Home Assistant setup to play tracks locally with my Sonos devices.
Note
It automatically handles spotdl library updates. No update necessary.
Example docker-compose.yml
:
version: "3"
services:
spotdl:
container_name: spotdl
restart: unless-stopped
image: ghcr.io/barisahmet/spotdl-playlist:latest
volumes:
- /path/to/folder:/music
- /path/to/logs:/logs
environment:
PLAYLIST_URLS: "https://[spotify playlist url here],https://[another spotify playlist url here]"
ENABLE_LOGS: "true"
SYNC_INTERVAL: "daily"
PLAYLIST_URLS
: Comma-separated list of Spotify playlist URLs to sync.SYNC_INTERVAL
: Interval for syncing playlists (e.g.,hourly
,daily
).ENABLE_LOGS
: Set totrue
to enable logging,false
to disable logging.
/music
: Directory to store downloaded music./logs
: Directory to store log files.