GithubHelp home page GithubHelp logo

sureshgulla / swarmist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jsalonen/swarmist

0.0 1.0 0.0 1.06 MB

Simple GUI for Docker Swarm Mode

License: MIT License

HTML 4.72% CSS 1.20% JavaScript 94.08%

swarmist's Introduction

Swarmist

Simple GUI for Docker Swarm Mode

Screenshot

For something similar, check out Portainer.

How to Run

Locally

docker run -it -v /var/run/docker.sock:/var/run/docker.sock -p 4000:4000 sureshgulla/swarmist

Against Remote Swarm

Create an SSH tunnel to manager node:

ssh [email protected]
docker run -it -p 2375:2375 -v /var/run/docker.sock:/var/run/docker.sock ubuntu:16.04 bash -c 'apt-get update; apt-get install -y socat; echo "\nSTARTING\n\n"; socat -d TCP-L:2375,fork UNIX:/var/run/docker.sock'

Start swarmist and connect to tunneled port:

DOCKER_HOST=http://example.com:2375 npm start

As a Swarm Mode Service

docker service create \
  --name swarmist \
  --constraint node.role==manager \
  --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
  --publish 7873:4000 docker.researchnow.com/rnops/swarmist:latest

Recipes

Setting up Load Balancing with Traefik

Add Traefik as a service:

docker service create \
	--name traefik \
	--constraint=node.role==manager \
	--publish 80:80 --publish 8080:8080 \
	--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \
	traefik:v1.1.0-rc2 \
	--docker \
	--docker.swarmmode \
	--docker.domain=local \
	--docker.watch \
	--web

See also: "Traefik Swarm Mode Guide"

TODO

Other pending swarm improvements: https://github.com/docker/docker/issues?utf8=%E2%9C%93&q=is%3Aopen%20label%3Aarea%2Fswarm%20label%3Akind%2Fenhancement

swarmist's People

Contributors

jsalonen avatar sureshgulla avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.