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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.