https://github.com/inquicker/docker-confd
A Docker image for confd.
https://github.com/inquicker/docker-confd
Last synced: 6 months ago
JSON representation
A Docker image for confd.
- Host: GitHub
- URL: https://github.com/inquicker/docker-confd
- Owner: InQuicker
- Created: 2015-11-25T09:14:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-25T09:14:45.000Z (over 10 years ago)
- Last Synced: 2025-01-22T20:15:02.911Z (over 1 year ago)
- Language: Makefile
- Homepage: https://hub.docker.com/r/inquicker/confd/
- Size: 1000 Bytes
- Stars: 1
- Watchers: 12
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-confd
This is a Docker image for [confd](https://github.com/kelseyhightower/confd). All it does is wrap the confd binary in a Docker image so it can be easily run as a container.
The path `/etc/confd` inside the container is a volume where you should mount your confd configuration files and templates.
## Usage
Start up etcd:
``` bash
export HOST_IP=192.168.1.100 # replace this IP with the IP of the machine running Docker
docker run -d -p 2379:2379 -p 2380:2380 quay.io/coreos/etcd:v2.2.2 -advertise-client-urls http://$HOST_IP:2379 -listen-client-urls http://0.0.0.0:2379 -initial-advertise-peer-urls http://$HOST_IP:2380 -listen-peer-urls http://0.0.0.0:2380 -initial-cluster default=http://$HOST_IP:2380
```
``` bash
docker run -v /etc/confd:/etc/confd inquicker/confd -node $HOST_IP:2379
```
The above example assumes that your confd configuration files and templates are in the host directories `/etc/confd/conf.d` and `/etc/confd/templates`, respectively.
## License
[MIT](http://opensource.org/licenses/MIT)