This container is ment as a web-front when you dont have more than 1 ip-address available and can route web domains to spesific ips and from there to containers. It will based on mounted configuration forward requests to another port/ip:port. From there, you can use another proxy to forward it on to the web-server container.
docker run -i -t -p 80:80 -p 443:443 -v $PWD/domains:/domains xeor/nginx-proxy-front
Put 1 folder per domain (vhost), inside the ./domains/ folder in the format domain_remote[:port], with one server.pem (or .crt), and server.key in.
The container watches this folder, so if you add a domain, it will be included without you having to restart the container.
--net host when starting the container..openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csrcat your_domain_com.crt COMODORSA* AddTrustExternalCARoot.crt > server.crt
server.crt file with the server.key file in your domains folder.openssl req -x509 -newkey rsa:2048 -keyout server.key -out server.pem -days 3650 -nodes/etc/letsencrypt is mounted and persitent and;/letsencrypt/letsencrypt-auto certonly --webroot -w /domains/your.domain_127.0.1.1/acme -d your.domainIf you want to generate a strong dhparam, place it in /domains/dhparams.pem, like openssl dhparam -out /domains/dhparams.pem 2048 and we will use it..
Content type
Image
Digest
sha256:520df604d…
Size
175.4 MB
Last updated
over 10 years ago
docker pull xeor/nginx-proxy-front