cyverse-de/nginx-consul-template

Name: nginx-consul-template

Owner: CyVerse Discovery Environment

Description: Docker setup of nginx with consul-template, to be used for consul-driven zero-downtime proxies

Created: 2016-09-23 19:03:42.0

Updated: 2016-09-23 19:04:01.0

Pushed: 2017-09-19 21:26:10.0

Homepage: null

Size: 23

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

nginx-consul-template

This repository contains a Dockerfile and associated support files for an image ordinarily published as discoenv/nginx-consul-template. This is an nginx-based image which includes consul-template and some simple template files, which accepts environment variables to control its behavior. As an example, in docker-compose syntax:

_files_nginx:
age: discoenv/nginx-consul-template:${DE_TAG}
start: unless-stopped
rts:
- "30000:30000"
vironment:
- CONSUL_CONNECT=${HOSTNAME}:8500
- NGINX_PROXY_SERVICE_NAME=anon-files
- NGINX_PROXY_PORT=30000
- DE_ENV=${DE_ENV}
- SERVICE_80_IGNORE=true
- SERVICE_443_IGNORE=true
- SERVICE_30000_NAME=anon-files-nginx
- SERVICE_30000_CHECK_HTTP=/?expecting=anon-files
- SERVICE_30000_CHECK_INTERVAL=10s
- SERVICE_30000_TAGS=${DE_ENV}
g_driver: "syslog"
g_opt:
tag: "{{.ImageName}}/{{.Name}}"
lumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone

For further details, reading the nginx.conf.tmpl file is recommended.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.