Install the Music app
Music installs from Nextcloud's app management with an administrator account, or through the occ command. Version 3.3.0 supports Nextcloud 28 to 35; our test ran on Nextcloud 33.0.10. Use the first line below on a regular install and the second with the Docker image, where occ runs inside the container as the www-data user.
php occ app:install music
docker compose exec --user www-data app php occ app:install music
ffmpeg, for lighter streams
It is optional: without it, Music always serves the originals. On a regular install, add your system's ffmpeg package, which Music looks for in the PATH. The official nextcloud image lacks it, so build a derived image, as the “full” example in the nextcloud/docker repository does.
FROM nextcloud:33.0.10-apache
RUN apt-get update \
&& apt-get install -y --no-install-recommends ffmpeg \
&& rm -rf /var/lib/apt/lists/*
Index the music
Put your albums in Files, open the Music app and pick the folder to scan in its settings. The app offers to scan whatever it has not read yet: accept. For a large collection, or for every account at once, use occ.
php occ music:scan --all
API password and connecting the app
In the Music settings, under Ampache and Subsonic, copy the Subsonic address. Enter a description such as RoadSonic and click “Generate API password”. Write down the username and password shown: the password will not appear again.
The app then needs a source of the OpenSubsonic type: the copied address, that username, that API password. “Allow unencrypted local HTTP” only matters for a home server reached without HTTPS. Close with “Test and connect”.
If the connection fails
Safari reports an untrusted domain, or the app gets nothing back: the name or IP you entered is missing from trusted_domains. The credentials are rejected: the field holds the Nextcloud password instead of the API one, or the API password was revoked.
