Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 3.04 KB

README.md

File metadata and controls

37 lines (28 loc) · 3.04 KB

NGINX on Raspberry Pi / ARM

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

About these images:

How to use these images:

  • $ 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=no/ST=none/L=none/O=none/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 -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

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

You need Alpine with NGINX and PHP7 in a single image?, see here:

This Image on