Sign inSign up

jfahrer/lb

By jfahrer

•Updated over 8 years ago

An nginx based loadbalancer

Image
0

2.5K

jfahrer/lb repository overview

  • v3, latest (lb/v3/Dockerfile)⁠

    This version is based on the official nginx image and has support for setting the protocol and upstream via environment variables

  • v2 (lb/v2/Dockerfile)⁠

    This version uses a package to install nginx on debian buster and has support for setting the protocol and upstream via environment variables.

  • v1 (lb/v1/Dockerfile)⁠

    This version uses a package to install nginx on debian buster.

⁠Usage

This image ships with nginx configured as reverse proxy. You can publish port 80 of the container to access the proxy.

docker container run -e PROXY_PROTOCOL=http -e PROXY_UPSTREAM=example.com:80 -p 80:80 jfahrer/lb:v3

See the section about environment variables for more information.

⁠Environment variables

ONLY supported by v2 and v3:

  • PROXY_PROTOCOL: The protocol that will be used by nginx to forward traffic. The default is http
  • PROXY_UPSTREAM: The IP address or domain name of the upstream service that the proxy will forward traffic to. The default is example.com

⁠Disclaimer

This image is not intended to be used in production. Its sole purpose is to demonstrate the functionalities of Docker. Head to https://LearnDocker.online⁠ for more information.

Tag summary

Content type

Image

Digest

Size

42.4 MB

Last updated

over 8 years ago

docker pull jfahrer/lb