Skip to content
/ mungo Public

docker health daemon: restarts unhealthy containers, healing the world of all maladies — magical and mundane alike — one container at a time.

License

Notifications You must be signed in to change notification settings

hacker/mungo

Repository files navigation

mungo

A daemon that watches over docker containers health and restarts unhealthy ones labeled with mungo.enabled=true.

running

You can set the DOCKER_HOST environment variable, e.g. DOCKER_HOST=unix:///var/run/docker.sock. No need to bother, usually.

docker run

docker run -d -v /var/run/docker.sock:/var/run/docker.sock:ro ghcr.io/hacker/mungo

docker-compose

services:
  mungo:
    image: ghcr.io/hacker/mungo:latest
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock:ro
    restart: unless-stopped

enabling

To put a container into mungo's care, add the mungo.enabled=true label.

docker run

docker run -d --label mungo.enabled=true ...

docker-compose

services:
  myapp:
    image: myapp:latest
    labels:
    - mungo.enabled=true

About

docker health daemon: restarts unhealthy containers, healing the world of all maladies — magical and mundane alike — one container at a time.

Topics

Resources

License

Stars

Watchers

Forks

Packages