alpine
(Dockerfile) (current Version: 1.14 on AlpineLinux)1.14
,latest
(Dockerfile) (on Debian 10 Buster)1.10
(Dockerfile) (on Debian 9 Stretch)
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 balena.io Base-Images.
- build on Docker Hub with Advanced options for Autobuild inspired by https://stackoverflow.com/a/54595564.
- additional software/tools used: qemu-user-static from multiarch and manifest-tool. Thanks for the great things!
$ 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