Public | Automated Build

Last pushed: a year ago
Short Description
NGINX Proxy & Docker-Gen- for RPI (based on JWILDER and LROGIUET)
Full Description

NGINX reverse proxy Docker image for Raspberry Pi

Separate Container Install

It can also be run as two separate containers using the jwilder/docker-gen
image, together with virtually any other image.

This is how you could run the official nginx image and
have docker-gen generate a reverse proxy config in the same way that nginx-proxy works. You may want to do
this to prevent having the docker socket bound to a publicly exposed container service.

Start nginx with a shared volume:

$ docker run -d -p 80:80 --name nginx-arm -v /opt/nginx-arm:/etc/nginx/conf.d -t lsioarmhf/nginx-armhf:latest

Fetch the template and start the docker-gen container with the shared volume:

$ mkdir -p /tmp/templates && cd /tmp/templates
$ curl -o nginx.tmpl
$ docker run -d --name nginx-gen --volumes-from nginx-arm \
   -v /var/run/docker.sock:/tmp/docker.sock:ro \
   -v /tmp/templates:/etc/docker-gen/templates \
   -t phreakazoid/nginx-proxy:docker-gen-arm -notify-sighup nginx-arm -watch -only-exposed /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf


Docker Pull Command
Source Repository