Dominik Weber tutorial how to set up reverse-proxy with NGINX, which can then handle server-related aspects, like SSL and caching, completely transparent to the application behind it. It is good practice in general to not make internal services public-facing that don’t have to be.
Article is divided into few sections:
- Docker-compose configuration
- Images used for docker-compose
- Networks with Docker
- Docker volumes
- NGINX configuration with LetsEncrypt certificates
docker-compose is a neat little tool that lets you define a range of docker containers that should be started at the same time, and the configuration they should be started with.
In the article author briefly explains how to configure the docker-compose features used in examples. He uses official NGINX image with the second image he created himself called “ismydependencysaf”. It exposes port 80, too. The difference to the ports configuration is that they are not published to the host machine.
This article is especially useful for people new to Docker, docker-compose and containers. With further resources and links to articles aimed at NGINX security. Well worth your time![Read More]