Install on TrueNAS

Run yamsap as a custom app on TrueNAS 24.10 or later, with your music dataset mounted and the NAS's own network, so yamsap can find your speakers.

What You Need

  • TrueNAS 24.10 or later, with a pool chosen for apps. TrueNAS CORE cannot run yamsap.
  • Your music in a dataset, such as tank/music.
  • A license key.

Make a Dataset for yamsap

In Datasets, add a dataset named yamsap, for example under tank/apps. Yamsap keeps its database, its settings and your license activation there.

Install the App

  1. Open Apps, then Discover Apps.

  2. Open the ⋮ menu beside Custom App and choose Install via YAML.

  3. Set Name to yamsap.

  4. Paste this into Custom Config:

    services:
      yamsap:
        image: cr.yamsap.com/yamsap:latest
        network_mode: host
        environment:
          - YAMSAP_SERVER_NAME=yamsap
          - YAMSAP_TIMEZONE=Europe/Berlin
        volumes:
          - /mnt/tank/music:/music
          - /mnt/tank/apps/yamsap:/data
        restart: unless-stopped
    
  5. Change /mnt/tank/music and /mnt/tank/apps/yamsap to your two datasets. A dataset's path is /mnt/ followed by its name, as Datasets shows it.

  6. Change Europe/Berlin to your time zone, written the same way, such as America/New_York or Australia/Sydney.

  7. Press Save.

TrueNAS downloads yamsap and starts it. The first download is about 1 GB.

Finish Setting Up

An app installed from YAML has no Web UI button, so open http://<your NAS's address>:8095 yourself, in a browser on the same network. Enter your license key, and when setup asks for your music folder, choose /music.

What the Settings Do

  • network_mode: host puts yamsap on the NAS's own network connection. Yamsap finds speakers by listening on your network, and each zone and each AirPlay speaker uses ports of its own, so it does not work behind Docker's usual private network.
  • YAMSAP_SERVER_NAME is the name the server shows to apps on your network and in your license's list of activations.
  • YAMSAP_TIMEZONE sets when a new day starts for daily mixes and the On This Day shelf.
  • /music is your music dataset. Yamsap writes to it only to save albums you drop onto its window, in a yamsap folder inside it, and to delete an album when you ask it to.
  • /data is the yamsap dataset. Keep it when you update or reinstall the app.

With host networking, port 8095 on the NAS is yamsap's. If another app already uses it, add - YAMSAP_ADDR=:8096 under environment and open that port instead.

Update

TrueNAS watches for new versions of the images its apps use. When yamsap has one, Apps shows an update for it. Select yamsap and choose Update. Your library and settings stay in the yamsap dataset.

Something on this page wrong or missing? Write to hello@torontoaudio.company.