Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

ignition_eclipse_mosquitto_mqtt

Dockerized environment for demoing MQTT using an Ignition Main and Edge Gateway and the Eclipse Mosquitto MQTT Broker.

This setup is for quick testing, development, and demonstration of Sparkplug B and general MQTT data between an Edge and a Central server using a third-party broker Mosquitto.


Repository Contents

File Name Description
docker-compose.yaml Defines the multi-container application, including the two Ignition instances and the Mosquitto broker.
mosquitto.conf Configuration file for the Mosquitto broker, enabling anonymous connections for this demonstration.

⚙️ Configuration Details

The docker-compose.yaml file sets up three containers:

1. mosquitto (MQTT Broker)

  • Image: eclipse-mosquitto
  • Port: Exposed on host port 1883 (1883:1883).
  • Configuration: Uses the provided mosquitto.conf, which sets:
    listener 1883
    allow_anonymous true
    
    This allows any client to connect to the broker on the default MQTT non-TLS port.

2. main (Standard Gateway)

  • Image: inductiveautomation/ignition:8.1.45
  • Port: Exposed on host port 9088 (9088:8088).
  • Gateway Name: Main
  • Edition: standard
  • Admin Credentials: Username admin, Password password (for development only).

3. edge (Edge Gateway)

  • Image: inductiveautomation/ignition:8.1.45
  • Port: Exposed on host port 9099 (9099:8088).
  • Gateway Name: Edge
  • Edition: edge
  • Admin Credentials: Username admin, Password password (for development only).

Getting Started

Follow these steps to launch:

1. Launch the containers

Run the following command from the same directory as the .yaml file:

docker compose up -d

This will pull the necessary images and start all three containers (main, edge, and mosquitto) in detached mode.

2. Access the Gateways

Wait for the Ignition Gateways to fully initialize. You can then access them via the browser:

3. Configure MQTT Connectivity

You will need to configure the MQTT Transmission and MQTT Engine modules within the Gateways.

Once configured, the Edge Gateway will publish Sparkplug B data to the Mosquitto broker, and the Main Gateway will subscribe to and process that data, making it available in the Cirrus Link managed Tag Provider.


Stopping and Cleanup

To stop and remove the containers and networks:

docker compose down

To remove the persistent data volumes as well (which resets the Ignition Gateways to their default state):

docker compose down -v

Additional Documentation

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors