This image contains a basic install of nginx-extras.
Create an nginx configuration directory on the host at /etc/nginx,
then configure nginx to meet your needs.
You can easily create the default configuration like so.
mkdir /etc/nginx
git clone https://github.com/hopsoft/docker-nginx.git
cp -R ./docker-nginx/nginx_conf/* /etc/nginx
rm -rf ./docker-nginx
sudo docker run --name nginx -d -p 80:80 -p 443:443 -v /var/log -v /etc/nginx:/etc/nginx:r hopsoft/nginx
vim /etc/nginx/nginx.conf
vim /etc/nginx/sites-enabled/YOUR_SITE.conf
docker restart nginx
Note: This is only for those wanting to build the image themselves.
git clone https://github.com/hopsoft/docker-nginx.git
cd docker-nginx
vagrant up
sudo docker build -t hopsoft/nginx /vagrant
Content type
Image
Digest
sha256:0938f28df…
Size
130.6 MB
Last updated
almost 11 years ago
docker pull hopsoft/nginx