Sign inSign up

chklang/monidocker

By chklang

•Updated over 7 years ago

An application to monitore docker nodes.

Image
0

482

chklang/monidocker repository overview

⁠Monidocker

An application to monitore docker nodes. You give only urls of docker API, this application will use them to show you all containers.

⁠How to execute it

⁠With docker

You can use the docker image chklang/monidocker. An example of docker-compose :

version: '2'

services:
  monidocker:
    image: chklang/monidocker
    environment:
      - monidocker_port=80
      - monidocker_hosts="http://192.168.0.1:2345|http://192.168.0.2:2345|http://192.168.0.3:2345"
    ports:
      - 22080:80

⁠With npm

⁠Installation
npm install -g @monidocker/app
⁠Execution
monidocker

⁠What are options ?

  • If you use ENV vars :
    • monidocker_port: - Port exposed by server (default is 80)
    • monidocker_hosts: - Urls of docker API, separated by pipe "|"
    • monidocker_webPort: - Change port of websocket (default is same port than website)
    • monidocker_webProtocol: - Change protocol of websocket (default is "ws" if website is "http", "wss" if website is "https")
  • If you use parameters variables
  • If you use configuration file
    • Put this configuration file into your user home directory with name ".monidocker.conf.json"
    • Structure is :
    {
      port?: number, // - Port exposed by server (default is 80)
      hosts: string, // - Urls of docker API, separated by pipe "|"
      webPort?: number, // - Change port of websocket (default is same port than website)
      webProtocol?: string, // - Change protocol of websocket (default is "ws" if website is "http", "wss" if website is 
    }

Priorities are :

  1. parameters variables
  2. ENV vars
  3. configuration file

"hosts" is the only mandatory key. If it's not given you will have an exception like:

UnhandledPromiseRejectionWarning: Error: No hosts found. Please use "hosts" as argument, "monidocker_hosts" as env var, or use file C:\\[path]\\.monidocker.conf.json

⁠How to build it

Type in shell :

npm i
npm run dist

Tag summary

Content type

Image

Digest

Size

25.2 MB

Last updated

over 7 years ago

docker pull chklang/monidocker