https://github.com/mikesir87/swarm-viz
Swarm Visualizer 2.0
https://github.com/mikesir87/swarm-viz
Last synced: 2 months ago
JSON representation
Swarm Visualizer 2.0
- Host: GitHub
- URL: https://github.com/mikesir87/swarm-viz
- Owner: mikesir87
- License: apache-2.0
- Created: 2017-10-20T11:52:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-26T16:31:50.000Z (about 6 years ago)
- Last Synced: 2025-03-23T22:52:37.461Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 700 KB
- Stars: 24
- Watchers: 3
- Forks: 16
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swarm Visualizer

This project is serving as an updated version of the Swarm Visualizer found at https://github.com/dockersamples/docker-swarm-visualizer.


## Why another one?
- It's event driven (well, sorta... tasks don't generate events yet, but we'll ignore that for now)
- Less clutter. Only the essential details are present, but more details are available with just a click
- Allows for more than three nodes. Have more nodes? It'll just keep adding another row!## Running the visualizer
### Linux/Mac
Running as container:
```
docker container run \
--name swarm-viz \
-p 3000:3000 \
-v /var/run/docker.sock:/var/run/docker.sock \
mikesir87/swarm-viz
```### Windows Server 1709
Run as Windows container:
```
docker container run `
--name swarm-viz `
-p 3000:3000 `
-u ContainerAdministrator `
-v //./pipe/docker_engine://./pipe/docker_engine `
mikesir87/swarm-viz
```## Development
From the root directory, simply run
```
docker-compose up -d
```The backend (api) is found in the `/api` directory and the frontend is found in the `/client` directory.
## Build
### Windows
At the moment there is no official node image for Windows. Therefore apply another base image to build the app.
```
docker build -t mikesir87/swarm-viz --build-arg node=stefanscherer/node-windows:1709 .
```