Public Repository

Last pushed: 6 months ago
Short Description
Nginx with stream libs, to be used as load balancer and full TCP traffic forwarding
Full Description

Running

docker run -d -p 80:80 -p 443:443 -v /root/nginx/http.conf.d:/opt/nginx/http.conf.d -v /root/nginx/hstream.conf.d:/opt/nginx/stream.conf.d --name nginx skydap/nginx-reverse:1.0

File contents:

/root/nginx/hstream.conf.d/dcos-lb.conf

upstream dcos {
    server 10.94.15.1:443;
    server 10.94.15.5:443;
    server 10.94.15.6:443;
}

server {
    listen 443;
    proxy_pass dcos;
}

/root/nginx/http.conf.d/ambari-proxy.conf

server {
    listen 80;
    location / {
        proxy_pass http://10.94.15.7;
    }
}

update changes by running /opt/nginx/sbin/zero_downtime_reload.sh

Docker Pull Command
Owner
skydap