docker-monit/docker-compose.yml
2024-09-23 02:45:50 +02:00

22 lines
433 B
YAML

services:
monit:
# 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
interval: 1m
retries: 1
ports:
- "2812:2812"
volumes:
- ./monitrc:/etc/monitrc
networks:
monitnet:
networks:
monitnet: