Giter VIP home page Giter VIP logo

rpi-docker-nginx-proxy's Introduction

This is a fork of a fork, that enables usage on a arm32v6 architecture RPI 1 (I think?). Have a look at Jason Wilder's original repository and README. The following part does not include all available options of the original project.

The original fork did not work for my raspberry pi 1 with arm32v6 so I modified it a bit, changing to alpine as a base as the arm32v6 only releases on alpine.

It worked for me so I thought I share it if it is useful for some of you.

All credit goes to Jason Wilder for the original and Alexander Krause for making it work on armhf.

Why do you want to use this?

Reasons and examples for using a reverse proxy are discussed by Jason Wilder or here.

Usage

  1. Clone this repository $ git clone https://github.com/Kahevajo/rpi-docker-nginx-proxy.git
  2. $ cd rpi-docker-nginx-proxy
  3. $ docker build -t kahevajo/rpi1-nginx-proxy:latest .
  4. $ docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro kahevajo/rpi1-nginx-proxy:latest

Then start any containers you want proxied with an env var VIRTUAL_HOST=subdomain.youdomain.com

$ docker run -e VIRTUAL_HOST=foo.bar.com  ...

Below things have not been tested on a RPI1 but supposedly works on RPI3

SSL Support using letsencrypt (recommend)

rpi-docker-letsencrypt-nginx-proxy-companion is a lightweight companion container for the nginx-proxy. It allow the creation/renewal of Let's Encrypt certificates automatically.

SSL Support

SSL is supported using single host, wildcard and SNI certificates using naming conventions for certificates or optionally specifying a cert name (for SNI) as an environment variable.

To enable SSL:

$ docker run -d -p 80:80 -p 443:443 -v /path/to/certs:/etc/nginx/certs -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy

The contents of /path/to/certs should contain the certificates and private keys for any virtual hosts in use. The certificate and keys should be named after the virtual host with a .crt and .key extension. For example, a container with VIRTUAL_HOST=foo.bar.com should have a foo.bar.com.crt and foo.bar.com.key file in the certs directory.

DynDNS

You can use for example https://www.duckdns.org to expose your Nextcloud container or something else. See here for more details.

rpi-docker-nginx-proxy's People

Contributors

27bslash6 avatar alexander-krause-glau avatar andrewvos avatar b1f6c1c4 avatar baptistedonaux avatar benhall avatar berfarah avatar buchdag avatar cervyvin avatar gabriel403 avatar huiwang avatar josephpage avatar jwilder avatar kamermans avatar kevindoveton avatar mariusgundersen avatar matt-hh avatar mayeaux avatar md5 avatar qiqizjl avatar rarous avatar ryneeverett avatar schmunk42 avatar taxilian avatar teohhanhui avatar thajeztah avatar thomasleveil avatar vegasbrianc avatar viranch avatar webner avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.