njm2112 / rpi-nginx

NGINX on Raspberry Pi / armhf

Home Page:https://hub.docker.com/r/tobi312/rpi-nginx/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NGINX on Raspberry Pi / armhf

Supported tags and respective Dockerfile links

What is Nginx?

Nginx (pronounced "engine-x") is an open source reverse proxy server for HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer, HTTP cache, and a web server (origin server). The nginx project started with a strong focus on high concurrency, high performance and low memory usage. It is licensed under the 2-clause BSD-like license and it runs on Linux, BSD variants, Mac OS X, Solaris, AIX, HP-UX, as well as on other *nix flavors. It also has a proof of concept port for Microsoft Windows.

wikipedia.org/wiki/Nginx and Nginx.org

logo

How to use this image

  • compare with: https://hub.docker.com/_/nginx/

  • $ docker pull tobi312/rpi-nginx

  • Optional: $ mkdir -p /home/pi/{.ssl,html} && mkdir -p /home/pi/.config/nginx && touch /home/pi/.config/nginx/default.conf and edit default.conf

  • Optional (SSL):

    • $ openssl req -x509 -newkey rsa:4086 -subj "/C=/ST=/L=/O=/CN=localhost" -keyout "ssl.key" -out "ssl.crt" -days 3650 -nodes -sha256
    • $ mv ssl.* /home/pi/.ssl/
  • $ docker run --name nginx -d -p 80:80 -p 443:443 --link some-php-fpm-container:phphost -v /home/pi/.ssl:/etc/nginx/ssl:ro -v /home/pi/.config/nginx:/etc/nginx/conf.d:ro -v /home/pi/html:/var/www/html tobi312/rpi-nginx

or build it yourself

  • $ git clone https://github.com/TobiasH87Docker/rpi-nginx.git && cd rpi-nginx

  • $ docker build -t tobi312/rpi-nginx ./VERSION/

  • Optional: $ mkdir -p /home/pi/{.ssl,html} && mkdir -p /home/pi/.config/nginx && touch /home/pi/.config/nginx/default.conf and edit default.conf

  • Optional (SSL)

  • $ docker run --name nginx -d -p 80:80 -p 443:443 --link some-php-fpm-container:phphost -v /home/pi/.ssl:/etc/nginx/ssl:ro -v /home/pi/.config/nginx:/etc/nginx/conf.d:ro -v /home/pi/html:/var/www/html tobi312/rpi-nginx

  • http://localhost or https://localhost

You need PHP (PHP-FPM)?, see here:

This Image on

About

NGINX on Raspberry Pi / armhf

https://hub.docker.com/r/tobi312/rpi-nginx/


Languages

Language:Dockerfile 100.0%