dockerfiles/monit
kev 82143a5b63 swith to new domain: easypi.pro 2017-05-08 07:05:07 +08:00
..
data update monit 2017-01-12 13:47:46 +08:00
Dockerfile swith to new domain: easypi.pro 2017-05-08 07:05:07 +08:00
README.md update monit 2016-10-30 14:39:47 +08:00
docker-compose.yml update monit 2016-10-30 14:39:47 +08:00

monit

Monit is a utility for managing and monitoring processes, programs, files, directories and filesystems on a Unix system.

directory tree

~/fig/monit/
├── docker-compose.yml
└── data/
    ├── conf.d/
    │   ├── network.cfg
    │   ├── setting.cfg
    │   └── system.cfg
    └── monitrc

Make sure config file endswith .cfg.

docker-compose.yml

monit:
  image: vimagick/monit
  volumes:
    - ./data:/etc/monit
  pid: host
  net: host
  restart: always

The control file /etc/monit/monitrc must have permissions no more than -rwx------ (0700)

Server Setup

$ cd ~/fig/monit/
$ docker-compose up -d
$ docker exec monit_monit_1 monit status

Client Setup

$ firefox http://admin:monit@server:2812