Nginx with stream libs, to be used as load balancer and full TCP traffic forwarding
379
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
/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
Content type
Image
Digest
Size
140.8 MB
Last updated
over 9 years ago
docker pull skydap/nginx-reverse:1.0