Install on a Synology NAS

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

What You Need

  • DSM 7.2 or later, with Container Manager installed from Package Center.
  • A model that can run Container Manager. Package Center offers it only on models that can.
  • Your music in a shared folder, such as music.
  • A license key.

Make a Folder for yamsap

  1. Open File Station.
  2. Open the docker shared folder. Container Manager made it when it installed.
  3. Create a folder in it named yamsap, and a folder inside that named data.

Container Manager keeps the project's settings in docker/yamsap. Yamsap keeps its database, its settings and your license activation in docker/yamsap/data.

Create the Project

  1. Open Container Manager and choose Project, then Create.

  2. Set Project Name to yamsap.

  3. Press Set Path and choose the docker/yamsap folder you just made.

  4. Set Source to Create docker-compose.yml, and paste this into the box:

    services:
      yamsap:
        image: cr.yamsap.com/yamsap:latest
        network_mode: host
        environment:
          - YAMSAP_SERVER_NAME=yamsap
          - YAMSAP_TIMEZONE=Europe/Berlin
        volumes:
          - /volume1/music:/music
          - /volume1/docker/yamsap/data:/data
        restart: unless-stopped
    
  5. Change /volume1/music to your music shared folder. To find its full path, right-click it in File Station and choose Properties. If your docker folder is on another volume, change /volume1 in the second path too.

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

  7. Press Next, press Next again on the web portal settings without turning anything on, and press Done on the summary.

Container Manager 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 data folder inside docker/yamsap. Keep it when you update or rebuild the project.

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

Container Manager checks for new versions of images tagged latest. When yamsap has one, its Image page shows Update available beside cr.yamsap.com/yamsap. Press it. Your library and settings stay in docker/yamsap/data.