Skip to content

Nginx LB configured by confd and monitored with NewRelic

License

Notifications You must be signed in to change notification settings

mkaag/docker-nginx_lb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-nginx_lb

Docker Hub

This repository contains the Dockerfile and the configuration files to build a Load Balancer based on Nginx for Docker. The configuration is performed with confd and monitoring can be enabled to use NewRelic

Base Docker Image

Installation

docker build -t mkaag/nginx_lb github.com/mkaag/docker-nginx_lb

Usage

Basic usage

docker run -d -p 443:443 -p 80:80 \
mkaag/nginx_lb /sbin/my_init -- bash /usr/local/bin/confd-watch

Using persistent volume

docker run -d \
-v /opt/apps/public:/var/www \
-p 443:443 -p 80:80 \
mkaag/nginx_lb /sbin/my_init -- bash /usr/local/bin/confd-watch

Using NewRelic

docker run -d \
-e "NEWRELIC_LICENSE=your_license" \
-e "NEWRELIC_APP=domain.com" \
-p 443:443 -p 80:80 \
mkaag/nginx_lb /sbin/my_init -- bash /usr/local/bin/confd-watch

etcd structure

etcdctl set /services/production/domain domain.com
etcdctl set /services/production/root /opt/apps/public
etcdctl set /services/production/upstream/127.0.0.1 127.0.0.1:9001

About

Nginx LB configured by confd and monitored with NewRelic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published