{"id":16345070,"url":"https://github.com/davidegrayson/docker-monit","last_synced_at":"2025-03-23T00:32:40.887Z","repository":{"id":23672949,"uuid":"27044198","full_name":"DavidEGrayson/docker-monit","owner":"DavidEGrayson","description":"Daemon that helps you monitor docker containers with tools like monit by maintaining PID files for the containers.  I use this for replylater.com and it's not very polished yet but maybe some people will find it useful.","archived":false,"fork":false,"pushed_at":"2017-11-03T16:13:31.000Z","size":4,"stargazers_count":17,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T15:54:53.390Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DavidEGrayson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-23T19:21:00.000Z","updated_at":"2023-09-23T22:06:32.000Z","dependencies_parsed_at":"2022-07-23T07:52:49.060Z","dependency_job_id":null,"html_url":"https://github.com/DavidEGrayson/docker-monit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidEGrayson%2Fdocker-monit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidEGrayson%2Fdocker-monit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidEGrayson%2Fdocker-monit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidEGrayson%2Fdocker-monit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DavidEGrayson","download_url":"https://codeload.github.com/DavidEGrayson/docker-monit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245040235,"owners_count":20551297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T00:29:48.102Z","updated_at":"2025-03-23T00:32:40.491Z","avatar_url":"https://github.com/DavidEGrayson.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"docker-monit: very simple daemon that helps you monitor docker containers\nby maintaining PID files for them.\n\nCreate file /etc/default/docker-monit with contents:\n\n```\nCONTAINERS=\"container1 container2 container3\"\n```\n\nThen run:\n\n```\ncp docker-monit /usr/local/bin/\n```\n\n## Upstart users\n\n```\ncp docker-monit.conf /etc/init\n\nstart docker-monit\n\nstop docker-monit\n\nsudo cat /var/log/upstart/docker-monit.log\n```\n\n## Systemd users\n```\ncp docker-monit.service /etc/systemd/system\n\n/bin/systemctl enable docker-monit.service\n\nservice docker-monit start\n\nservice docker-monit stop\n\nsudo journalctl -f -u docker-monit.service\n```\n\n\n## Monit users\n\nCreate file /etc/monit/conf.d/docker-monit with contents:\n\n```\ncheck process docker-monit with pidfile /var/run/docker-monit.pid\n  start program = \"/sbin/start docker-monit\"\n  stop program = \"/sbin/stop docker-monit\"\n  if 5 restarts with 5 cycles then timeout\n\ncheck process rl_db with path /var/run/docker-monit/rl_db.pid\n  if 5 restarts with 5 cycles then timeout\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidegrayson%2Fdocker-monit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidegrayson%2Fdocker-monit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidegrayson%2Fdocker-monit/lists"}