Sunday, April 28, 2019

Dockerizing nginx using jwilder/dockerize

Today, most technology stacks are really well suited to be dockerized (e.g. spring boot, cypress.io, .NET core to name a few).

However, still some lack good support for the usual 12x factor app guidelines like

One such example is nginx. It is configured using conf.d-dropins, by default starts in background and does not log to stdout. 

But using Jason Wilder's dockerize tool written in golang it's been a quick breeze to make nginx into a docker-friendly reverse proxy dynamically configured to proxy to this very blog.

Jason's example became a bit dated since nginx is still moving fast. So i updated it for nginx 1.16. You can find the code at mkoertgen/hello.dockerize. Enjoy!

No comments:

Post a Comment