docker-monit/docker-compose.yml

23 lines
436 B
YAML
Raw Normal View History

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