go-dockermonitor

command module
v0.0.0-...-f8b7978 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2019 License: MIT Imports: 8 Imported by: 0

README

go-dockermonitor

This is a simple Docker monitor, that will check for the health tag. If a Docker container becomes unhealthy, it will use the Pushbullet API to send a notification.

Easy to run inside Docker of course!

docker run \
    -e DOCKERMONITOR_PBTOKEN="<pushbullet api token>" \
    -e DOCKERMONITOR_DOCKERSOCK="unix:///var/run/docker.sock" \
    -v /var/run/docker.sock:/var/run/docker.sock \
    eyjhb/dockermonitor

docker-compose.yml

version: "3"
services:
  dockermonitor:
    container_name: dockermonitor
    image: eyjhb/dockermonitor
    restart: always
    environment:
      - DOCKERMONITOR_PBTOKEN=pushbullettoken
      - DOCKERMONITOR_DOCKERSOCK=unix:///var/run/docker.sock
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL