KVISDAOWNER / Water-Probe-IoT

0 stars 0 forks source link

(P7) Water-Probe-IoT

Dockerizing and Running the System

Be placed in the same directory as the Docker Compose files and do the following for the different parts of the system:

The Frontend

Docker Compose:

docker-compose -f docker-compose-frontend.yaml up -d

And you should then be able to access the website at localhost:80.

Docker Swarm:

docker stack deploy -c docker-compose-frontend.yaml frontend

where "frontend", at the end, is simply the name you give to the stack you are building and deploying to the swarm.

The Backend

Docker Compose:

docker-compose -f docker-compose-backend.yaml up -d

Docker Swarm:

docker stack deploy -c docker-compose-frontend.yaml frontend

The Visualizer

Docker Compose:

docker-compose -f docker-compose-monitoring.yaml up -d

Docker Swarm:

docker stack deploy -c docker-compose-monitoring.yaml visualizer