An ONBUILD Docker image for nginx and confd.
Expects the confd configurations files and templates to be located in
./confd of the inheriting image.
confd/
├── conf.d
│ └── nginx.toml
└── templates
└── nginx.conf.tmpl
The image is based on information from this blog post
To create a new image base on this one, all you need in your Dockerfile is
the FROM tag and an EXPOSE tag to expose the nginx port.
FROM andersjanmyr/nginx-conf
EXPOSE 80
confd-watch.sh, the script that is listening to etcd is configured with the
following environment variables and con be overridden when starting the
container with docker run -e "CONFD_NODE=$MY_IP:4001" -it lifelog/nginx-confd
export CONFD_NODE=172.17.42.1:4001
Content type
Image
Digest
sha256:e6e50a8c2…
Size
188 MB
Last updated
almost 11 years ago
docker pull andersjanmyr/nginx-confd