The Docker image: a working folder and your music
The official image listens on port 5082. Its notice asks for two volumes at least: the working folder, writable, mounted on /var/lms, and the music read-only, one volume per library. It also advises running the container as an unprivileged user: replace 1000:1000 with yours, which must be able to write to ./lms-data.
services:
lms:
image: epoupon/lms:3.82.0
restart: unless-stopped
user: "1000:1000"
ports:
- "5082:5082"
volumes:
- "./lms-data:/var/lms:rw"
- "/srv/music:/music:ro"
Debian package, no Docker
The developer publishes a package for Debian Trixie on amd64. Run the commands below as root. The service starts straight away under an lms system user, which needs read access to your music folder. The listening port and address are set in /etc/lms.conf.
wget --backups=1 https://debian.poupon.dev/apt/debian/epoupon.gpg -P /usr/share/keyrings
echo "deb [signed-by=/usr/share/keyrings/epoupon.gpg] https://debian.poupon.dev/apt/debian trixie main" > /etc/apt/sources.list.d/epoupon.list
apt update
apt install lms
First launch: account, library, scan
Open http://server-address:5082. A setup assistant creates the administrator account, since the first account always gets that role. Under Administration → Libraries, add /music, or the real path outside Docker. Set the period in Scan settings, then click “Scan now!”. Only the administrator can create further accounts, such as one kept for listening.
Generate the key and add LMS to the app
Signed in with the account the iPhone will use, open Settings → Subsonic API, generate the key and copy it. On the app side, create an OpenSubsonic source with the address http://server-address:5082, your LMS username, and the key where the password goes. If the address is local and lacks HTTPS, the “Allow unencrypted local HTTP” switch has to be on. Finish with “Test and connect”.
Behind a reverse proxy
LMS slows down failed login attempts based on the client's IP address. Behind a proxy, set behind-reverse-proxy to true in lms.conf and list the proxy under trusted-proxies, otherwise every client seems to come from it. With Docker, the gateway to trust is 172.17.0.1 by default.
