Install on a QNAP NAS

Run yamsap as an application in Container Station, with your music shared folder mounted and the NAS's own network, so yamsap can find your speakers.

What You Need

  • QTS 5.1 or QuTS hero h5.1 or later, with Container Station 3 or later installed from App Center.
  • A model with a 64-bit Intel, AMD or ARM processor.
  • Your music in a shared folder, such as Multimedia.
  • A license key.

Make a Folder for yamsap

  1. Open File Station.
  2. Open the Container shared folder. Container Station made it when it installed.
  3. Create a folder in it named yamsap.

Yamsap keeps its database, its settings and your license activation in this folder.

Create the Application

  1. Open Container Station and choose Applications, then Create.

  2. Set Application Name to yamsap.

  3. Paste this into the YAML box:

    services:
      yamsap:
        image: cr.yamsap.com/yamsap:latest
        network_mode: host
        environment:
          - YAMSAP_SERVER_NAME=yamsap
          - YAMSAP_TIMEZONE=Europe/Berlin
        volumes:
          - /share/Multimedia/Music:/music
          - /share/Container/yamsap:/data
        restart: unless-stopped
    
  4. Change /share/Multimedia/Music to the folder that holds your music. A shared folder named Music is /share/Music, and a folder inside it adds its own name, as in /share/Music/Albums.

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

  6. Press Validate, then Create.

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

Finish Setting Up

Open http://<your NAS's address>:8095 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 folder. 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 Container/yamsap folder. Keep it when you update or recreate the application.

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

  1. In Container Station, open Images, choose Pull, and pull cr.yamsap.com/yamsap:latest.
  2. Open Applications, choose Recreate next to Edit for yamsap, and press Update.

Your library and settings stay in Container/yamsap.