mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
.. | ||
monit | ||
docker-compose.yml | ||
Dockerfile | ||
README.md |
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
└── monit/
├── conf.d/
│ ├── network.cfg
│ ├── setting.cfg
│ └── system.cfg
└── monitrc
Make sure config file endswith
.cfg
.
docker-compose.yml
monit:
image: vimagick/monit
volumes:
- monit:/etc/monit
pid: host
net: host
restart: always
The control file
/etc/monit/monitrc
must have permissions no more than-rwx------ (0700)
server
$ cd ~/fig/monit/
$ docker-compose up -d
$ docker exec monit_monit_1 monit status
client
$ firefox http://admin:monit@server:2812