Sign inSign up

starase/nginx

By starase

•Updated about 9 years ago

Official Nginx v. 1.13.1 image based on Alpine 3.5 customized to start static html websites

Image
0

10K+

starase/nginx repository overview

⁠Disclaimer

This docker image is far from being truly persistent and docker-way. It is more like a beginning to start an evolved container but it is a good way to improve it.

⁠Special thanks

I started this images following the Official Nginx image I have to say thank you to: Nginx official image⁠

I've worked to automate this image using this Dockerfile⁠

⁠Details

Image: Alpine 3.5

Image size: ~16Mb

⁠Software
  • nginx
⁠Customizations

There are some customizations for my personal purposes and by default the root directory for nginx is /app If you need to use composer you have to link it because the work home directory is different as well This image is almost ready for production environment but if you want do follow the best practice you need a SSL certificate. There are some ways to implement it but is not the scope of this opera

⁠Try it

You can pull the image and it will be up&running simply doing:

docker pull starase/nginx

You can start it:

docker run -d -i -t -v /storage/www/:/app starase/nginx

Of course you can customize it. My reccomendation is to run it with persistent volume to preserve the data Another thing you can do is puting name or hostname, simply adding --name name and --h hostname before the image's name

⁠Issues & Contributing

Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing. Otherwise you feel free to drop me a line at paolo [at] starase.com

Have fun, happy dockerizing

Tag summary

Content type

Image

Digest

Size

6.4 MB

Last updated

about 9 years ago

docker pull starase/nginx