Skip to content

seges/docker-nginx-consul

Folders and files

NameName
Last commit message
Last commit date
Aug 16, 2018
Aug 16, 2018
Jan 4, 2016
Aug 15, 2018
May 23, 2015
Aug 16, 2018
Aug 16, 2018
Jun 2, 2015
Aug 15, 2018
Jun 2, 2015
Aug 16, 2018
May 23, 2015

Repository files navigation

Build Status

TODO: update img tag

Nginx with Consul Template

This Docker image follows official Nginx image extended with Consul Template to allow to refresh configuration based on the changes in Consul repository

Example

How to run example

Application readme

Docker-compose explanation

Volumes

  • /etc/nginx/conf.d -> nginx configuration
  • /etc/consul-template/conf -> Consul Template configurations taken and merged alphabetically - https://github.com/hashicorp/consul-template
  • /etc/consul-template/templates -> a good place to situate your templates defined in the configuration

Run

docker run --rm --volumes-from=yourdata-image -ti seges/nginx-consul:1.14.0

Refs to blog

Blog1