Skip to content

AjkayAlan/rpi-nginx-rp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rpi-nginx-rp

Raspberry Pi Docker image for a NGINX reverse proxy

Building

Build the container using something like the following:

docker build -t ajkayalan/rpi-nginx-rp:latest https://github.com/AjkayAlan/rpi-nginx-rp.git

If you have cloned locally, you can do something like the following instead:

docker build -t ajkayalan/rpi-nginx-rp:latest .

Running

After building the container, you will want to run it.

First, build a network for anything you want to have reverse proxied:

docker network create rp

Then you can run this on that network. Note that this has to be the only thing on port 80/443:

docker run --name rpi-nginx-rp --net rp --restart always -d -p 80:80 -p 443:443 ajkayalan/rpi-nginx-rp:latest

Want SSL?

Easy enough

First, get in an interactive shell:

docker exec -it "id of running container" bash

Then: cd tmp

Now do the following:

sudo apt-get update
wget https://dl.eff.org/certbot-auto
chmod a+x ./certbot-auto
./certbot-auto

This installs certbot - read more at https://certbot.eff.org/about/

About

Raspberry Pi Docker image for a NGINX reverse proxy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published