https://github.com/nextjournal/consul-template-docker
To run docker commands from a consul-template Docker container
https://github.com/nextjournal/consul-template-docker
Last synced: 3 months ago
JSON representation
To run docker commands from a consul-template Docker container
- Host: GitHub
- URL: https://github.com/nextjournal/consul-template-docker
- Owner: nextjournal
- License: mit
- Created: 2017-01-04T18:12:43.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-04T18:58:30.000Z (about 9 years ago)
- Last Synced: 2025-09-30T16:52:17.891Z (3 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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.