This pod provides an Eclipse Mosquitto MQTT server.
The Eclipse Mosquitto configuration is kept in the Eclipse Mosquitto Config repository.
-
Clone the Eclipse Mosquitto Config repository.
git -C ~/Projects clone https://github.com/jwillikers/eclipse-mosquitto-config.git
-
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
-
Reload the firewall rules that were just saved.
sudo firewall-cmd --reload
-
Follow the instructions for Caddy if using websockets.
-
Create the directory for Podman’s systemd generator.
mkdir -p ~/.config/containers/systemd
-
Symlink the
podman.network
andeclipse-mosquitto.kube
files to the~/.config/containers/systemd/
directory.ln --force --relative --symbolic ../podman.network eclipse-mosquitto.kube ~/.config/containers/systemd/
-
Load the newly added systemd units.
systemctl --user daemon-reload
-
Start Eclipse Mosquitto.
systemctl --user start eclipse-mosquitto