To run docker commands from a consul-template Docker container
1.5K
To run docker commands from a consul-template Docker container.
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.
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.
Content type
Image
Digest
Size
42.6 MB
Last updated
almost 10 years ago
docker pull nextjournal/consul-template-docker