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
This version uses a package to install nginx on debian buster and has support for setting the protocol and upstream via environment variables.
This version uses a package to install nginx on debian buster.
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.
ONLY supported by v2 and v3:
PROXY_PROTOCOL: The protocol that will be used by nginx to forward traffic. The default is httpPROXY_UPSTREAM: The IP address or domain name of the upstream service that the proxy will forward traffic to. The default is example.comThis 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.
Content type
Image
Digest
Size
42.4 MB
Last updated
over 8 years ago
docker pull jfahrer/lb