1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-08-08 22:27:53 +02:00

update monit

This commit is contained in:
kev
2022-01-21 11:59:53 +08:00
parent cd6b9a7eae
commit b391da200b
3 changed files with 20 additions and 16 deletions

View File

@ -2,8 +2,8 @@
# Dockerfile for monit # Dockerfile for monit
# #
FROM alpine FROM alpine:3
MAINTAINER kev <noreply@easypi.pro> MAINTAINER EasyPi Software Foundation
RUN apk add --no-cache monit RUN apk add --no-cache monit

View File

@ -24,13 +24,15 @@ directories and filesystems on a Unix system.
## docker-compose.yml ## docker-compose.yml
```yaml ```yaml
monit: version: "3.8"
image: vimagick/monit services:
volumes: monit:
- ./data:/etc/monit image: vimagick/monit
pid: host volumes:
net: host - ./data:/etc/monit
restart: always pid: host
net: host
restart: unless-stopped
``` ```
> The control file `/etc/monit/monitrc` must have permissions no more than > The control file `/etc/monit/monitrc` must have permissions no more than

View File

@ -1,7 +1,9 @@
monit: version: "3.8"
image: vimagick/monit services:
volumes: monit:
- ./data:/etc/monit image: vimagick/monit
pid: host volumes:
net: host - ./data:/etc/monit
restart: always pid: host
net: host
restart: unless-stopped