Simple web app that use icmp protocol to check some devices if there are up or not. In the app, you have 'Node' which is a single device or server that you want to capture status and the 'Area' which is a group of nodes for better separation
1. Run all services in the containers
Build:
docker-compose -f .\docker-compose.debug.yml build
Run:
docker-compose -f .\docker-compose.debug.yml up
you can attach the debugger after running the entire app with the command above
Stop:
docker-compose -f .\docker-compose.debug.yml down
2. Run services separately
Run the database services:
docker-compose -f .\docker-compose.dev.yml up
Then you have to run API and the ui as well:
cd ./server
yarn run dev
cd ./www
yarn run serve
Build:
docker-compose build
Run:
docker-compose up
Stop:
docker-compose down
A better solution may be Docker Swarm. Make sure you built the images first.
docker swarm init
docker stack deploy -c docker-compose.yml icmp
Milad bonakdar
[email protected]
MIT