A ready to use nginx server for your Raspberry Pi 3
319
dnsmasq for DNS managementsudo docker run \
--rm \
--name nginx-server \
-p 80:80 \
kafebob/rpi-nginx
😸
If you pass the environment variable $NGINX_SSL_ENABLE=1 when you create a container then SSL is going to be enabled. Will be used to generate SSL self-signed certificates.
sudo docker run -e NGINX_ENABLE_SSL=1 \
--rm \
--name nginx-server \
-p 80:80 -p 443:443 \
kafebob/rpi-nginx
This docker image use /var/www as a data volume, you can map your static html content with /var/www
sudo docker run \
--rm -it \
--name nginx-server \
-v ~/your-content:/var/www
-p 80:80 \
kafebob/rpi-nginx
This docker image also use /etc/nginx/conf.d as a data volume, map your your nginx server configuration with this folder
sudo docker run \
--rm -it \
--name nginx-server \
-v ~/your-content:/var/www
-v ~/your-custom-config:/etc/nginx/conf.d
-p 80:80 \
kafebob/rpi-nginx
Read Hosting browser games on your Pi and Self-signed Https support one of my articles playing with this image.
Content type
Image
Digest
Size
9.6 MB
Last updated
over 8 years ago
docker pull kafebob/rpi-nginx