Soni HiFi

NAS and server

Run Soni Server with Docker

Updated 2026/11/26

Soni Server is a small Rust service; the image is about 100 MB and available for linux/amd64 and linux/arm64. Any host that runs Docker will do. On Synology, follow the dedicated guide.

docker-compose.yml

services:
  soni-server:
    image: jimmyonrails/soni-server:latest
    container_name: soni-server
    network_mode: host
    volumes:
      - /path/to/music:/music:ro
      - ./data:/data
    environment:
      SONI_NAME: MyServer
      TZ: Europe/London
    restart: unless-stopped
docker compose up -d
curl http://localhost:8840/api/info

Notes

  • /music: your music (FLAC, ALAC .m4a, WAV, AIFF). To edit tags or add covers from the apps, remove :ro and make sure the container user can write (written files keep their owner and permissions). Tag editing currently works on FLAC.
  • /data: the database (library.db), artwork thumbnails and daily backups. Mount it somewhere persistent.
  • network_mode: host: needed for Bonjour discovery. Without host networking, enter http://<host IP>:8840 in the apps.
  • Ports: TCP 8840 (API and streaming), UDP 5353 (Bonjour).
  • Admin page: http://<host IP>:8840/admin.

Important

The server has no password and is meant for your local network. Never forward 8840 to the internet; for remote listening use a VPN such as Tailscale.

Try Soni HiFi

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