This Dockerfile build an image for Nginx with capabilities of reverse proxy google.
docker run -d -p 8080:80 --name google-reverse-proxy --restart=always onisuly/google-reverse-proxy
Suggest to use LetsEncrypt companion container for nginx-proxy to achieve this goal.
docker run -d -p 8080:80 --name google-reverse-proxy \
-e SECURE=true \
-e USERNAME=your_name \
-e PASSWORD=your_password \
--restart=always \
onisuly/google-reverse-proxy
If you want to add multiple users, your can generate .htpasswd file here and mount it to your container.
docker run -d -p 8080:80 --name google-reverse-proxy \
-v /your/path/to/.htpasswd:/usr/local/nginx/conf/.htpasswd \
--restart=always \
onisuly/google-reverse-proxy
This docker image is based on Nginx Module for Google Mirror and learns a lot from google-reverse-proxy.