alpine
(Dockerfile) (current Version: 1.18 on AlpineLinux)1.14
,latest
(Dockerfile) (on Debian 10 Buster)
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.
- based on official Images: arm32v7/debian and arm32v7/alpine.
- build on Docker Hub with Autobuild, for example and more details see in this repository.
- Information: Thanks for over 5M pulls :-) But since some time there are official NGINX ARM-Images available! I recommend to use them. See official NGINX-Image for supported architectures (arm32v5/nginx, arm32v6/nginx, arm32v7/nginx, arm64v8/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=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