Dockerized NGINX with optimized configs
This is a boilerplate NGINX configs using Docker, you can include it in your repo and add your server(s) config.
Dockerfile based on https://github.com/fholzer/docker-nginx-brotli
Why it's not synced with the original repo?
-
The original repo main goal is setting up NGINX with brotli, my goal is to have a centralized repo where I can keep up with changes & tweaks I make for my own.
-
In addition to adding new 3rd party modules ‑ at the time of writing I think I added
headers-more-nginx-moduleand upgraded base Alpine image. Currently the final image size is 13.22MB -
So I made this as a standalone repo rather than forcing the original author to add stuff that meets my needs.
How to integrate in my project?
- Assuming your project is containerized
- You read the files and tweaked them based on your needs and server(s) hardware
- Add the Dockerfile with the rest of your infrastructure configs
- You don't need a volume for the configs, check the last lines of the
Dockerfile, I am copying them directly into the container. Doesn't work with you? remove it and mount/bind the configs just like you do for your other services - While this thing is building and you get an error, open a ticket
- While you can use it, you need to dive in the licensing stuff (this is why I am not adding one)
- Here is some rambling about NGINX https://mkreg.dev/writing/nginx-treats

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
