Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 820 Bytes

File metadata and controls

38 lines (31 loc) · 820 Bytes

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