HUB
Sign inSign up
waveflow-server logo

instazdll/waveflow-server

By instazdll

•Updated 4 days ago

Your music, everywhere, self-hosted streaming with a web player, OpenSubsonic and one Rust binary.

Image
Web servers
Content management system
1

1.2K

instazdll/waveflow-server repository overview

⁠WaveFlow Server

Your music, everywhere you listen. A self-hosted music server in one Rust binary, with a web player built in and the OpenSubsonic API your apps already speak.

The WaveFlow web player: mixes made from your listening above a grid of albums

Point it at the folders where your music lives. It builds your library, streams it to your browser, your phone and your desktop, and converts on the fly when the connection is tight. No PostgreSQL, no Redis, no identity provider required: one container, one database file, one key file.

  • A complete web player: albums, artists, songs, folders, search as you type, synced lyrics, mixes and listening statistics. Over HTTPS, install it on a phone and keep tracks for offline listening.
  • Your Subsonic apps work as they are: Symfonium, Feishin, DSub and Juliet have each been run against the server, and the dated results are published⁠.
  • Knows what your files really are: the audio of every lossless file is measured, and a FLAC that was once an MP3 is shown for what it is.
  • A track's music video: a video named like its song, beside it or in a Clips folder, plays in place of the cover, in the web player and the WaveFlow desktop app.
  • Sign in with the identity provider you already run: Authentik, Keycloak, Authelia, Pocket ID or any OpenID Connect provider, beside local passwords or as the only way in, with groups deciding who gets in and who administers.
  • In Home Assistant's sidebar: the WaveFlow app⁠ runs this image and shows the web player as a panel.
  • Smart playlists, podcasts, internet radio, share links, and scrobbling to ListenBrainz, Last.fm and Maloja.
  • Your files stay yours: the music folder is mounted read-only and never rewritten, and nothing leaves the server unless you switch it on.

⁠Tags

TagWhat it is
2.4.0This release, pinned. Recommended.
latestThe latest stable release.
betaThe latest pre-release.

Each image is built for linux/amd64 and linux/arm64, which includes a Raspberry Pi 4 or 5 on a 64-bit system. The same image, digest for digest, is on GitHub Container Registry as ghcr.io/instazdll/waveflow-server.

⁠Quick start

docker run -d --name waveflow \
  --restart unless-stopped \
  -p 4533:4533 \
  -v waveflow-data:/data \
  -v /path/to/music:/music:ro \
  instazdll/waveflow-server:2.4.0

Then open http://your-host:4533. The setup screen creates the administrator account and asks for the one-time token the server wrote to its data directory:

docker exec waveflow cat /data/setup-token

Setup also registers /music as the administrator's first library, Music, and starts its scan, so the player opens on your albums. To add another folder later, mount it and register it under that account (admin here):

docker exec waveflow waveflow-server library add --owner admin --name Live --path /live
⁠Docker Compose
services:
  waveflow:
    image: instazdll/waveflow-server:2.4.0
    restart: unless-stopped
    ports:
      - "4533:4533"
    environment:
      WAVEFLOW_PUBLIC_URL: ""      # https://music.example.com behind a proxy
    volumes:
      - waveflow-data:/data
      - /path/to/music:/music:ro

volumes:
  waveflow-data:

⁠Connect a Subsonic app

Subsonic apps use a dedicated password, separate from the web one:

docker exec -e WAVEFLOW_SUBSONIC_PASSWORD='a-different-app-password' \
  waveflow waveflow-server credential set --actor admin --username admin

On your own network, point the app at http://your-host:4533 with that username and password.

⁠Exposing it safely

The server speaks plain HTTP, and Subsonic apps send their credentials with every request. -p 4533:4533 publishes it on every interface of the host, which suits a network you trust and nothing wider. To listen from outside, put a reverse proxy that terminates TLS in front, and:

  • proxy on the same host: publish on the loopback only, -p 127.0.0.1:4533:4533;
  • proxy in a container: publish nothing, put both containers on one Docker network, and point the proxy at http://waveflow:4533;
  • set WAVEFLOW_PUBLIC_URL to the https:// address, and WAVEFLOW_TRUSTED_PROXIES to the proxy's address or network so each client keeps its own sign-in budget.

Or start from the ready-made setup: packaging/caddy/⁠ runs the server behind Caddy, which fetches and renews the certificate itself, through ACME for a public name (Let's Encrypt, with ZeroSSL as fallback) or from its own local authority for a name on your network. It publishes no port for the server and already trusts the proxy. The operations guide⁠ covers both certificates and how to move a server you already run onto it without losing its data.

⁠Image reference

WhatDetail
Port4533 (HTTP)
/dataThe database, its instance key, artwork, canvases, podcast episodes and transcode cache. A named volume, or a folder of the host: the container takes it over at start (see below).
/musicYour music, mounted read-only and never touched. It must be readable by the server's account, UID 4533 unless you change it.
UserThe container starts as root, gives /data to waveflow (UID and GID 4533), then runs the server as that account. docker exec … waveflow-server steps down the same way.
Health checkGET /ready, built into the image
LogsJSON on stdout (WAVEFLOW_LOG_FORMAT=json); level through RUST_LOG
FFmpegIncluded

On Fedora, RHEL and other SELinux systems, Podman (or Docker with SELinux enabled) refuses the container a host folder that is not labelled for containers: /music answers Permission denied, whatever its Unix permissions, and the scan fails. Mount it with a lowercase z, -v /path/to/music:/music:ro,z, which relabels the folder for containers without rewriting any file. Not an uppercase Z, which keeps the folder to this container alone, and never on a system folder or the whole of /home: the new label replaces the old one, so a folder Samba already shares, for instance, stops being readable by Samba. The waveflow-data volume needs nothing.

A data folder the host provides (Home Assistant, a NAS share, a bind mount made by root) works as it is since 2.2.2: at each start, the container gives what in /data is not yet the account's to it, and changes nothing on later starts. It leaves alone anything mounted inside /data, hard links and the targets of symbolic links, and does not take over a /data reached through a link. WAVEFLOW_UID and WAVEFLOW_GID (both 4533) name another account, for files that must belong to a NAS user; 0 keeps root, for rootless Podman. --user runs the server as the account you give and skips the hand-over, so the folder must already be writable by it.

⁠Settings you are most likely to want
VariableDefaultWhat it does
WAVEFLOW_PUBLIC_URLemptyThe address users reach, so share links come out absolute
WAVEFLOW_TRUSTED_PROXIESemptyYour reverse proxy's address or CIDR block
WAVEFLOW_ALLOWED_ORIGINSemptyBrowser-hosted clients such as Feishin's web build, listed explicitly
WAVEFLOW_SETUP_TOKENgeneratedChoose the first-run token yourself, 16 characters at least
WAVEFLOW_METADATA_PROVIDERSofflastfm, deezer, theaudiodb: biographies, portraits, banners. Last.fm and TheAudioDB need your own key
WAVEFLOW_LYRICS_PROVIDERSofflrclib fetches lyrics for files that have none
WAVEFLOW_PODCASTSoffon turns podcasts on
WAVEFLOW_OIDC_ISSUER, WAVEFLOW_OIDC_CLIENT_ID, WAVEFLOW_OIDC_CLIENT_SECREToffSign-in through an OpenID Connect provider. WAVEFLOW_OIDC_ONLY=true makes it the only way in; the operations guide⁠ has the rest
WAVEFLOW_SUBSONIC_ENABLEDtruefalse stops serving /rest, for an instance used only from the web player and the desktop app
WAVEFLOW_UPDATE_CHECKaskThe first administrator to sign in is asked whether the server may check download.waveflow.app for new versions; nothing is sent before a yes. on or off decides for everyone and nobody is asked

Every setting, and what each optional feature contacts, is in the operations guide⁠ and the privacy guide⁠.

⁠Backups and upgrades

waveflow.db and instance.key in /data belong together: the Subsonic passwords and scrobbling links in the database are sealed with that key, and the server refuses a mismatched pair. Back up the whole /data volume, or take the pair with:

docker exec waveflow waveflow-server database backup --output /data/backup-$(date +%F)

To upgrade, pull the new tag and start it on the same volume. The server copies the database and its key aside before it migrates, so a failed upgrade can be rolled back from that copy. An older version refuses a database a newer one has migrated, so going back from 2.4.0 to 2.3.0 is that restore, not a pull: the 2.4.0 notes⁠ say how.

Once the update check is on, an administrator is told in the web player when a new version is out.

⁠License

AGPL-3.0-only⁠. It runs as a network service, so anyone you serve it to is entitled to its source, and the sign-in page links to the source of the exact version running.

Tag summary
Recent tags
Content type
Image
Digest
sha256:d865242f3…
Size
206.1 MB
Last updated
4 days ago
docker pull instazdll/waveflow-server:latest