Giter Club home page Giter Club logo

docker-nginx-ssl-loadbalancer's Introduction

nginx-ssl-loadbalancer

Docker Repository on Quay.io

This container enables a TLS load balancer for application servers using nginx. This is based on the Offical nginx container, 1.7

The official location of this container is https://quay.io/repository/jcjones/nginx-ssl-loadbalancer .

This balancer comes with initial support for 5 app servers in a round-robin configuration. Future updates will add server configurability.

Usage

Mount your TLS keys to /ssl, preferably read-only.

Running the Image

You need to use --add-host to indicate the upstream servers to utilize. The server names are:

  1. app1
  2. app2
  3. app3
  4. app4
  5. app5

Leaving one blank has no more effect than nginx considering the host down.

The general form of the command would be:

docker run -d \
  --name lb \
  --add-host app1:192.168.1.1  \
  --add-host app2:192.168.1.2  \
  -v /path/to/ssl:/ssl:ro \
  -p 443:443 -p 80:80 \
  quay.io/jcjones/nginx-ssl-loadbalancer

In the volume bound to /ssl, you should have server.key and server.crt, the private key and certificate chain.

docker-nginx-ssl-loadbalancer's People

Contributors

jcjones avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.