mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-12 04:23:04 +02:00
update monit
This commit is contained in:
parent
ebe080bd1f
commit
bdde461ab4
@ -3,7 +3,7 @@ monit
|
|||||||
|
|
||||||
![](https://badge.imagelayers.io/vimagick/monit:latest.svg)
|
![](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.
|
directories and filesystems on a Unix system.
|
||||||
|
|
||||||
## directory tree
|
## directory tree
|
||||||
@ -11,7 +11,7 @@ directories and filesystems on a Unix system.
|
|||||||
```
|
```
|
||||||
~/fig/monit/
|
~/fig/monit/
|
||||||
├── docker-compose.yml
|
├── docker-compose.yml
|
||||||
└── monit/
|
└── data/
|
||||||
├── conf.d/
|
├── conf.d/
|
||||||
│ ├── network.cfg
|
│ ├── network.cfg
|
||||||
│ ├── setting.cfg
|
│ ├── setting.cfg
|
||||||
@ -23,11 +23,11 @@ directories and filesystems on a Unix system.
|
|||||||
|
|
||||||
## docker-compose.yml
|
## docker-compose.yml
|
||||||
|
|
||||||
```
|
```yaml
|
||||||
monit:
|
monit:
|
||||||
image: vimagick/monit
|
image: vimagick/monit
|
||||||
volumes:
|
volumes:
|
||||||
- monit:/etc/monit
|
- ./data:/etc/monit
|
||||||
pid: host
|
pid: host
|
||||||
net: host
|
net: host
|
||||||
restart: always
|
restart: always
|
||||||
@ -36,16 +36,18 @@ monit:
|
|||||||
> The control file `/etc/monit/monitrc` must have permissions no more than
|
> The control file `/etc/monit/monitrc` must have permissions no more than
|
||||||
> `-rwx------ (0700)`
|
> `-rwx------ (0700)`
|
||||||
|
|
||||||
## server
|
## Server Setup
|
||||||
|
|
||||||
```
|
```bash
|
||||||
$ cd ~/fig/monit/
|
$ cd ~/fig/monit/
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
$ docker exec monit_monit_1 monit status
|
$ docker exec monit_monit_1 monit status
|
||||||
```
|
```
|
||||||
|
|
||||||
## client
|
## Client Setup
|
||||||
|
|
||||||
```
|
```bash
|
||||||
$ firefox http://admin:monit@server:2812
|
$ firefox http://admin:monit@server:2812
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[1]: https://www.mmonit.com/monit/documentation/monit.html
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
monit:
|
monit:
|
||||||
image: vimagick/monit
|
image: vimagick/monit
|
||||||
volumes:
|
volumes:
|
||||||
- ./monit:/etc/monit
|
- ./data:/etc/monit
|
||||||
pid: host
|
pid: host
|
||||||
net: host
|
net: host
|
||||||
restart: always
|
restart: always
|
||||||
|
Loading…
Reference in New Issue
Block a user