services: monit: image: registry.manalejandro.com/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 start_period: 1m ports: - "2812:2812" volumes: - ./monitrc:/etc/monitrc networks: monitnet: networks: monitnet: