Public Repository

Last pushed: 2 years ago
Short Description
A small image - ready for Raspberry pi running NGINX 1.10.1
Full Description

A recent and very small build of an ARM ready image for Raspberry Pi including the latest stable of the reverse proxy NGINX 1.10.1
It's build on Alpine Linux 3.4 and only ~ 10MB in size.

NGINX configurations can be done via local configurations:

--- on your docker host--
mkdir -p /opt/nginx/logs &&\
mkdir /opt/nginx/conf.d

--extract the default config from the docker container in case we need to make adjustments
cd /opt/nginx

docker pull bbme/rpi-nginx

docker run --name nginx bbme/rpi-nginx
--find the container id via
docker ps

docker exec <container id> cat /etc/nginx/conf.d/default.conf > default.conf
docker exec <container id> cat /etc/nginx/nginx.conf > nginx.conf

-- stop the container again and remove it
docker stop <container id>
docker rm <container id>

--Edit the config files according to your needs.

--run the image--on port 80 and 443
docker run --name=nginx -p 80:80 -p 443:443 -v /opt/nginx/nginx.conf:/etc/nginx/nginx.conf:ro -v /opt/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf:ro -v /opt/nginx/logs:/var/log/nginx bbme/nginx

docker run --name=nginx -p 80:80 -p 443:443 -v /opt/docker/dockerfiles/rpi-nginx/nginx.conf:/etc/nginx/nginx.conf:ro -v /opt/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf:ro -v / -v /opt/nginx/logs:/var/log/nginx bbme/nginx

Docker Pull Command