HUB
Sign inSign up
consul-template-docker logo

nextjournal/consul-template-docker

By nextjournal

•Updated almost 10 years ago

To run docker commands from a consul-template Docker container

Image
0

1.5K

nextjournal/consul-template-docker repository overview

To run docker commands from a consul-template Docker container.

⁠A use case

We run Haproxy using docker-compose. To restart Haproxy when its bind-mounted template changes, consul-template needs access to docker to send the HUP signal. This way, we can use the official haproxy Docker image which handles restarts gracefully based a signal.

⁠Usage

docker run nextjournal/consul-template-docker -config /etc/config/consul.hcl

A shared volume is available at /rendered for writing out templates used by other containers.

Tag summary

Content type

Image

Digest

Size

42.6 MB

Last updated

almost 10 years ago

docker pull nextjournal/consul-template-docker