Soni HiFi

NAS and server

Install Soni Server on a Synology NAS

Updated 2026/11/26

This guide sets up Soni Server on a Synology NAS with Container Manager. When you are done, the Mac, iPhone and iPad apps find the library on the NAS automatically. There are images for Intel/AMD models (such as the DS925+) and ARM models.

Before you start

  1. The path of your music share: in File Station, right-click the music folder → Properties and note the location, for example /volume1/music.
  2. A folder for Soni's data: inside the docker share (created when you install Container Manager), create soni-server, i.e. /volume1/docker/soni-server. The database, artwork thumbnails and daily backups live here.
  3. To edit tags or add covers from the apps, the music folder must be writable (see below).

Create the project

  1. Open Container Manager → Project → Create.
  2. Name it soni-server and choose /volume1/docker/soni-server as the path.
  3. Choose "Create docker-compose.yml" and paste:
services:
  soni-server:
    image: jimmyonrails/soni-server:latest
    container_name: soni-server
    network_mode: host            # needed for Bonjour discovery
    user: "0:0"                   # root: Synology music shares are often unreadable for other users
    volumes:
      - /volume1/music:/music:ro  # your music folder; remove :ro to edit tags from the apps
      - /volume1/docker/soni-server:/data
    environment:
      SONI_NAME: MyNAS            # the name shown in the apps
      TZ: Europe/London           # time zone for the nightly 03:00 backup and rescan
    restart: unless-stopped
  1. Click through and start it. Container Manager pulls the image from Docker Hub.

Permissions and firewall

  • Control Panel → Shared Folder → your music share → Edit → Permissions: read access is enough; read/write if you want to edit tags.
  • If the DSM firewall is on, allow TCP 8840 (API and streaming) and UDP 5353 (Bonjour) from your local network.

Check that it runs

  1. Open http://<NAS IP>:8840/api/info in a browser. You should see "mode":"nas" and a track count. The first scan takes a while depending on the size of your library (scanning is true meanwhile).
  2. Open http://<NAS IP>:8840/admin to see scan progress, albums missing covers or years, duplicates, and to repair files that start with an ID3 tag.
  3. Open the Mac or iPhone app: the server shows up under the name you chose.

Maintenance

  • Update: Project → Action → Stop → Clean → Build. This pulls the newest image. Clean only removes the container; your data is in the mounted folders.
  • Backups: the database is backed up daily at 03:00 to /volume1/docker/soni-server/backups/, keeping 7 copies.
  • Logs: Container Manager → Container → soni-server → Log.

Troubleshooting

Symptom Cause and fix
The apps cannot find the NAS Allow Local Network access on the Mac/iPhone; the firewall blocks UDP 5353; or the project does not use host networking. Try entering http://<NAS IP>:8840 manually in the app.
No albums The container cannot read the music share, or the /music path is wrong.
Tag edits fail The mount is read-only (:ro) or there is no write permission.
Data gone after a restart /data is not mounted to a persistent folder.

The server has no password. Do not forward port 8840 on your router. To listen away from home, see Tailscale remote listening.

Try Soni HiFi

A self-hosted hi-fi music system. FLAC, ALAC, WAV and AIFF, bit-perfect, free for now.