To run this application, one must install Docker Engine and Docker Compose. To do so, one can run:
sudo curl -fsSL https://get.docker.com/ | sh
sudo apt-get install docker-compose unzip
💡 TIP: Docker engine requires privileged access to run most commands. To give your user privileged access to Docker engine, run
usermod -aG docker <your-user>
, then logout and login again.
More information about Docker and Docker Compose can be found in the Reference Docs section, in the end of this document.
After installed, to pull images and start all three containers, run from the repository's main directory:
docker-compose up -d
Once all images are pulled, all services should be up and running.
Scada-LTS can be accessed in your browser via <http://localhost:8080/Scada-LTS>
with default user admin/admin. The mosquitto broker address sould be <localhost:1883>
.
All services can be stopped by running docker-compose stop
in the shell terminal.
One might want as well to start or stop services independently. For MQTT broker, run:
docker-compose up -d mosquitto
or docker-compose stop mosquitto
OBS: If keeping logs and/or store MQTT data locally is needed, uncomment docker-compose.yml commented lines.
Similarly, the same can be done to Scada-LTS running docker-compose up -d scadalts
or docker-compose stop scadalts
. As it depends on mysql database, if not running, the mysql container will start automatically as well.