https://github.com/pteich/docker-consul-template
Dockerfile for consul-template Docker image based on Alpine
https://github.com/pteich/docker-consul-template
consul-template docker docker-image dockerfile
Last synced: 2 months ago
JSON representation
Dockerfile for consul-template Docker image based on Alpine
- Host: GitHub
- URL: https://github.com/pteich/docker-consul-template
- Owner: pteich
- Created: 2016-11-09T10:24:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-31T21:57:13.000Z (almost 9 years ago)
- Last Synced: 2025-06-13T10:51:59.957Z (about 1 year ago)
- Topics: consul-template, docker, docker-image, dockerfile
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-consul-template
Dockerfile for consul-template Docker image based on Alpine
Small Docker image (20MB) for running a containerized [Consul Template](https://github.com/hashicorp/consul-template).
Built this container:
```
docker build --rm -t consul-template:latest ./
```
This docker image can be used like the `consul-template` binary itself. Any cli arguments can be added. Just make sure that you mount your local folder containing your templates as `/data` into this container like so:
```
docker run -d -v /path/to/local/dir:/data consul-template:latest -consul 127.0.0.1:8500 -template "/tmp/template.ctmpl:/var/www/nginx.conf"
```
If you need to interact with other services (e.g. restart after config change) you have to find a way to do this from inside the container.