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)
|
||||
|
||||
`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
|
||||
|
@ -1,7 +1,7 @@
|
||||
monit:
|
||||
image: vimagick/monit
|
||||
volumes:
|
||||
- ./monit:/etc/monit
|
||||
- ./data:/etc/monit
|
||||
pid: host
|
||||
net: host
|
||||
restart: always
|
||||
|
Loading…
Reference in New Issue
Block a user