Sign inSign up

eyjhb/dockermonitor

By eyjhb

Updated about 8 years ago

Monitor for Docker to send notifications via. pushbullet if a container gets unhealthy

Image
0

2.2K

eyjhb/dockermonitor repository overview

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

Tag summary

Content type

Image

Digest

Size

4.9 MB

Last updated

about 8 years ago

docker pull eyjhb/dockermonitor