Skip to content

Latest commit

 

History

History
25 lines (23 loc) · 567 Bytes

Readme.md

File metadata and controls

25 lines (23 loc) · 567 Bytes

Nginx Load balancer

Simple load nginx load balancer with certbot built in.

Config

# Email to be used with letsencrypt
email: test@gmail.com
# Don't change this. Mount this directory to the container to keep the configs
routesDir: /etc/nginx/routes
routes:
    # Host name
  - host: "test.example.com"
    # Enable tls
    tls: true
    # Upstream server
    upstream: "http://services:8080" 

Usage

docker run  malayh/nginx-lb:1.0.0 \
-v /etc/letsencrypt:/etc/letsencrypt \
-v /etc/nginx/routes:/etc/nginx/routes \
-p 80:80 -p 443:443 \