eyJhb / go-dockermonitor

Pushbullet monitor for Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Pushbullet monitor for Docker

License:MIT License


Languages

Language:Go 90.2%Language:Dockerfile 9.8%