Skip to content

Latest commit

 

History

History
69 lines (58 loc) · 1.64 KB

README.adoc

File metadata and controls

69 lines (58 loc) · 1.64 KB

Eclipse Mosquitto

This pod provides an Eclipse Mosquitto MQTT server.

Usage

The Eclipse Mosquitto configuration is kept in the Eclipse Mosquitto Config repository.

  1. Clone the Eclipse Mosquitto Config repository.

    git -C ~/Projects clone https://github.com/jwillikers/eclipse-mosquitto-config.git
  2. Open the default Eclipse Mosquitto ports, 8123, in the firewall, since rootless Podman won’t be able to open this for us.

    sudo firewall-cmd --add-port=1883/tcp --permanent
  3. Reload the firewall rules that were just saved.

    sudo firewall-cmd --reload
  4. Follow the instructions for Caddy if using websockets.

  5. Create the directory for Podman’s systemd generator.

    mkdir -p ~/.config/containers/systemd
  6. Symlink the podman.network and eclipse-mosquitto.kube files to the ~/.config/containers/systemd/ directory.

    ln --force --relative --symbolic ../podman.network eclipse-mosquitto.kube ~/.config/containers/systemd/
  7. Load the newly added systemd units.

    systemctl --user daemon-reload
  8. Start Eclipse Mosquitto.

    systemctl --user start eclipse-mosquitto