Source: mariushosting.com
- Go to File Station and open the docker folder. Inside the docker folder, create one new folder and name it mosquitto.
- Now create three new folders inside the mosquitto folder that you created at previously. Name them config, data and log.
- Upload the mosquitto.conf file.
- 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
- General
- Save the task and Run it.
- You can now access Eclipse Mosquitto at port 1883.
