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: