Public | Automated Build

Last pushed: 2 years ago
Short Description
A Docker image to load balance request inside a Docker swarm cluster
Full Description

Loadbalancer Docker image for Docker Swarm

The Docker images contains an nginx web server and the consul-template to write a dynamic configuration for the nginx. This repo is inspired by this one:


Set the following environment variables:

  • APP_NAME: The container service name that we want to load balance.
  • CONSUL_URL: URL endpoint for consul instance.


docker run -d -p 80:80 -e APP_NAME="example" -e CONSUL_URL="" johscheuer/docker-nginx-loadbalancer


Use nginx alpine instead of default nginx

Docker Pull Command

Comments (0)