Skip to content

Utility to allow consul health-checks to run commands inside containers, for services registered via https://github.com/gliderlabs/registrator

Notifications You must be signed in to change notification settings

CreatorDev/docker-check-cmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This util is designed to be used with https://github.com/gliderlabs/registrator. There's a seemingly-undocumented feature which allows you to specify consul health checks which execute check-cmd on the consul host, passing in the containerid and exposedport as arguments. This allows the service container (e.g. redis etc) to provide the healthcheck logic, without having to copy scripts into the consul container.

Specify SERVICE_CHECK_CMD as an environment variable to the (redis) container, and have this be the full path to a script. The script will be passed the exposedport as the only argument.

About

Utility to allow consul health-checks to run commands inside containers, for services registered via https://github.com/gliderlabs/registrator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published