docker-monit/docker-compose.yml

22 lines
433 B
YAML
Raw Normal View History

2018-03-03 12:09:49 +00:00
services:
monit:
2024-08-20 03:11:55 +00:00
# image: registry.gitlab.com/manalejandro/monit-docker/monit:latest
image: monit
build: .
hostname: monit
container_name: monit
restart: always
healthcheck:
test: curl --fail http://admin:monit@monit:2812/ || exit 1
2024-09-23 00:45:50 +00:00
interval: 1m
retries: 1
2018-03-03 12:09:49 +00:00
ports:
2024-08-20 03:11:55 +00:00
- "2812:2812"
2018-03-03 12:09:49 +00:00
volumes:
- ./monitrc:/etc/monitrc
2024-08-20 03:11:55 +00:00
networks:
monitnet:
networks:
monitnet: