instantlinux/udp-nginx-proxy

By instantlinux

Updated 8 months ago

A load-balancer for UDP provided by nginx.

Image

100K+

udp-nginx-proxy

The missing feature of haproxy: UDP, provided by nginx. The main use-case for this is to make more than one DNS server available at a single IP address for high-availability. It can also remap specialized DNS services from one UDP port to another.

Usage

See the docker-compose.yml file provided here in the source directory; you will probably need to run it in network:host mode.

A customized configuration can be volume-mounted as /usr/local/lib/udp.conf.

Variables
VariableDefaultDescription
BACKENDSselfspace-separated list of backend IP or hostnames
INTERFACEeth0interface to listen on
IP_LISTENselfIP address to bind to
PORT_BACKEND53UDP port number of backend servers
PORT_LISTEN53port to listen on
Contributing

If you want to make improvements to this image, see CONTRIBUTING.

Docker Pull Command

docker pull instantlinux/udp-nginx-proxy