A daemon that watches over docker containers health and restarts unhealthy ones labeled with mungo.enabled=true
.
You can set the DOCKER_HOST
environment variable, e.g. DOCKER_HOST=unix:///var/run/docker.sock
. No need to bother, usually.
docker run -d -v /var/run/docker.sock:/var/run/docker.sock:ro ghcr.io/hacker/mungo
services:
mungo:
image: ghcr.io/hacker/mungo:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped
To put a container into mungo's care, add the mungo.enabled=true
label.
docker run -d --label mungo.enabled=true ...
services:
myapp:
image: myapp:latest
labels:
- mungo.enabled=true