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
- The path of your music share: in File Station, right-click the music folder → Properties and note the location, for example
/volume1/music. - A folder for Soni's data: inside the
dockershare (created when you install Container Manager), createsoni-server, i.e./volume1/docker/soni-server. The database, artwork thumbnails and daily backups live here. - To edit tags or add covers from the apps, the music folder must be writable (see below).
Create the project
- Open Container Manager → Project → Create.
- Name it
soni-serverand choose/volume1/docker/soni-serveras the path. - 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
- 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
- Open
http://<NAS IP>:8840/api/infoin a browser. You should see"mode":"nas"and a track count. The first scan takes a while depending on the size of your library (scanningis true meanwhile). - Open
http://<NAS IP>:8840/adminto see scan progress, albums missing covers or years, duplicates, and to repair files that start with an ID3 tag. - 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.