This repository contains Dockerfile of Nginx for Docker's automated build published to the public Docker Hub Registry.
Install Docker.
Download automated build from public Docker Hub Registry:
docker pull hoycdanny/nginx-reverse-proxy
git clone https://github.com/hoycdanny/Dockerfile
cd Dockerfile/nginx-reverse-proxy
docker build -t /hoycdanny/nginx-reverse-proxy .
docker-entrypoint.sh. docker run -tdi \
-e PROXY_PASS=https://www.nginx.com \
-e PROXY_PATH=nginx \
-p 80:80 \
nginx-reverse-proxy
docker run -tdi \
-e PROXY_PASS=PASS_URL \
-e PROXY_PATH=PASS_PATH \
-p 80:80 \
nginx-reverse-proxy
After few seconds open you browser.
curl http://localhost #nginx welcom page
curl http://localhost/PASS_PATH #PASS_URL
Content type
Image
Digest
Size
92.4 MB
Last updated
about 9 years ago
docker pull hoycdanny/nginx-reverse-proxy