Install MQTT on Synology NAS

Source: mariushosting.com

  1. Go to File Station and open the docker folder. Inside the docker folder, create one new folder and name it mosquitto.
  2. Now create three new folders inside the mosquitto folder that you created at previously. Name them config, data and log.
  3. Upload the mosquitto.conf file.
  4. Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script. Use the following parameters:
    • General
      • Task: Install Eclipse Mosquitto
      • User: root
      • Enabled: No
    • Schedule
      • Run on the following date: Do not repeat
    • Task Settings
      • Send run details by email: Yes
      • User-defined script:
        docker run -d --name Eclipse-Mosquitto \
        -p 1883:1883 \
        -p 9001:9001 \
        -v /volume1/docker/mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf \
        -v /volume1/docker/mosquitto/data:/mosquitto/data \
        -v /volume1/docker/mosquitto/log:/mosquitto/log \
        eclipse-mosquitto
        chmod -R 0700 /volume1/docker/mosquitto/data
  5. Save the task and Run it.
  6. You can now access Eclipse Mosquitto at port 1883.

Submit a Comment

Your email address will not be published. Required fields are marked *