GithubHelp home page GithubHelp logo

docker-monit's Introduction

A minimal base image for monit

docker-monit is a Docker image that is configured to be used directly or as a base for more customized applications for monit, the monitoring daemon. docker-monit is available for pulling from the Docker registry

This image includes monit version 5.13

Overview

This image installs monit to the following location:

  • /opt/monit

Monit is configured to be executed and managed by the runit, the init system of phusion/baseimage-docker. It will be executed as a non-privileged user named monit. The monit configuration file lives at:

  • /home/monit/conf/monitrc.

The supplied monitrc simply includes all .conf files at the following locations:

  • /home/monit/conf/monitrc.d
  • /home/monit/conf/monit.d

Monit Configuration

By default, monit is configured as follows:

  • HTTP console running on port 2812
    • Username "admin" with password "monit" for admin access
    • Users who are part of the monit group have admin access
    • Users who are part of the users group have readonly access
  • Monit cycle is set to 60 seconds

Config files in /home/monit/conf/monitrc.d typically should define the basic runtime configuration of monit itself, while config files in /home/monit/conf/monit.d should be service checks. This allows a user to use the basic runtime configuration supplied by monit and add monit checks by mounting a directory of config files (from the host, for instance) at /home/monit/conf/monit.d.

Along the same lines, the runtime configuration can be completely replaced by mounting a configuration directory to /home/monit/conf/monitrc.d.

Docker Configuration

Exposed Ports:

  • 2812 (Monit httpd)

Dependencies

Examples

# Runs a container that will be deleted at shutdown with the following
# properties:
#   * exposes container port 2812 to the host
#   * injects monit check configurations from the host at /tmp/monit.d
docker run --rm --name "test-docker-monit" -p 2812:2812 -v /tmp/monit.d/:/home/monit/conf/monit.d lgustafson/docker-monit:latest

docker-monit's People

Contributors

lgustafson avatar

Stargazers

Supermasita avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.