diff --git a/monit/README.md b/monit/README.md index d4aa273..b657a68 100644 --- a/monit/README.md +++ b/monit/README.md @@ -3,7 +3,7 @@ monit ![](https://badge.imagelayers.io/vimagick/monit:latest.svg) -`Monit` is a utility for managing and monitoring processes, programs, files, +[Monit][1] is a utility for managing and monitoring processes, programs, files, directories and filesystems on a Unix system. ## directory tree @@ -11,7 +11,7 @@ directories and filesystems on a Unix system. ``` ~/fig/monit/ ├── docker-compose.yml -└── monit/ +└── data/ ├── conf.d/ │   ├── network.cfg │   ├── setting.cfg @@ -23,11 +23,11 @@ directories and filesystems on a Unix system. ## docker-compose.yml -``` +```yaml monit: image: vimagick/monit volumes: - - monit:/etc/monit + - ./data:/etc/monit pid: host net: host restart: always @@ -36,16 +36,18 @@ monit: > The control file `/etc/monit/monitrc` must have permissions no more than > `-rwx------ (0700)` -## server +## Server Setup -``` +```bash $ cd ~/fig/monit/ $ docker-compose up -d $ docker exec monit_monit_1 monit status ``` -## client +## Client Setup -``` +```bash $ firefox http://admin:monit@server:2812 ``` + +[1]: https://www.mmonit.com/monit/documentation/monit.html diff --git a/monit/monit/conf.d/network.cfg b/monit/data/conf.d/network.cfg similarity index 100% rename from monit/monit/conf.d/network.cfg rename to monit/data/conf.d/network.cfg diff --git a/monit/monit/conf.d/setting.cfg b/monit/data/conf.d/setting.cfg similarity index 100% rename from monit/monit/conf.d/setting.cfg rename to monit/data/conf.d/setting.cfg diff --git a/monit/monit/conf.d/system.cfg b/monit/data/conf.d/system.cfg similarity index 100% rename from monit/monit/conf.d/system.cfg rename to monit/data/conf.d/system.cfg diff --git a/monit/monit/monitrc b/monit/data/monitrc similarity index 100% rename from monit/monit/monitrc rename to monit/data/monitrc diff --git a/monit/docker-compose.yml b/monit/docker-compose.yml index e938d38..0d4b788 100644 --- a/monit/docker-compose.yml +++ b/monit/docker-compose.yml @@ -1,7 +1,7 @@ monit: image: vimagick/monit volumes: - - ./monit:/etc/monit + - ./data:/etc/monit pid: host net: host restart: always