Merge branch 'feature/docker-instructions-cleanup' into develop
This commit is contained in:
commit
8aabe3fcd7
29
README.md
29
README.md
@ -1,3 +1,5 @@
|
|||||||
|
[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/kijart/monit.svg)](https://hub.docker.com/r/kijart/monit)
|
||||||
|
|
||||||
# Monit - UNIX Systems Management
|
# Monit - UNIX Systems Management
|
||||||
|
|
||||||
Run Monit inside docker.
|
Run Monit inside docker.
|
||||||
@ -6,27 +8,38 @@ Run Monit inside docker.
|
|||||||
|
|
||||||
[Monit](https://mmonit.com/monit/) is a free open source utility for managing and monitoring, processes, programs, files, directories and filesystems on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.
|
[Monit](https://mmonit.com/monit/) is a free open source utility for managing and monitoring, processes, programs, files, directories and filesystems on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.
|
||||||
|
|
||||||
Default username/password: admin/monit
|
Default username/password: `admin/monit`
|
||||||
|
|
||||||
|
## Versions
|
||||||
|
|
||||||
|
| Docker image | Monit |
|
||||||
|
| ---------------------- | --------- |
|
||||||
|
| `kijart/monit:latest` | `5.26.0` |
|
||||||
|
| `kijart/monit:1.2.0` | `5.26.0` |
|
||||||
|
| `kijart/monit:1.1.0` | `5.25.2` |
|
||||||
|
| `kijart/monit:1.0.2` | `5.25.1` |
|
||||||
|
| `kijart/monit:1.0.1` | `5.25.1` |
|
||||||
|
| `kijart/monit:1.0.0` | `5.25.1` |
|
||||||
|
|
||||||
## Docker setup
|
## Docker setup
|
||||||
|
|
||||||
Install docker: https://docs.docker.com/engine/installation/
|
Install docker: <https://docs.docker.com/engine/installation/>
|
||||||
|
|
||||||
Install docker compose: https://docs.docker.com/compose/install/
|
Install docker compose: <https://docs.docker.com/compose/install/>
|
||||||
|
|
||||||
Docker documentation: https://docs.docker.com/
|
Docker documentation: <https://docs.docker.com/>
|
||||||
|
|
||||||
### Build-in docker image
|
### Build-in docker image
|
||||||
|
|
||||||
- build docker image `docker build -t monit .`
|
- build docker image `docker build -t monit .`
|
||||||
|
|
||||||
- start monit: `docker run -ti -p 2812:2812 -v $(pwd)/monitrc:/etc/monitrc monit`
|
- start monit: `docker run --rm -it -p 2812:2812 -v $(pwd)/monitrc:/etc/monitrc monit`
|
||||||
|
|
||||||
### Docker Hub image
|
### Docker Hub image
|
||||||
|
|
||||||
- pull docker image from docker hub: `docker pull kijart/monit`
|
- pull docker image from docker hub: `docker pull kijart/monit:latest`
|
||||||
|
|
||||||
- start monit: `docker run -ti -p 2812:2812 -v $(pwd)/monitrc:/etc/monitrc kijart/monit`
|
- start monit: `docker run --rm -it -p 2812:2812 -v $(pwd)/monitrc:/etc/monitrc kijart/monit:latest`
|
||||||
|
|
||||||
- create a docker container:
|
- create a docker container:
|
||||||
|
|
||||||
@ -35,7 +48,7 @@ docker create \
|
|||||||
--name=monit \
|
--name=monit \
|
||||||
-p 2812:2812 \
|
-p 2812:2812 \
|
||||||
-v $(pwd)/monitrc:/etc/monitrc \
|
-v $(pwd)/monitrc:/etc/monitrc \
|
||||||
kijart/monit
|
kijart/monit:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
### Docker compose
|
### Docker compose
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
version: "2"
|
version: "2"
|
||||||
services:
|
services:
|
||||||
monit:
|
monit:
|
||||||
image: "kijart/monit"
|
image: kijart/monit:latest
|
||||||
logging:
|
logging:
|
||||||
driver: json-file
|
driver: json-file
|
||||||
options:
|
options:
|
||||||
|
Loading…
Reference in New Issue
Block a user