Skip to content

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