Setting up basic NGINX reverse proxy using Docker container. Checkout vessel project on GitHub for some usage examples.
nginx.conf
Simple NGINX reverse proxy configuration. The configuration forwards the host header value to the node, adds NGINX generated request id and passes X-Forwarded-For http headers.
Dockerfile
Create a Dockerfile to create an image with NGINX reverse proxy configuration. Below Dockerfile copies the configuration from local file to container’s NGINX configuration directory.
docker-compose.yml
Create a Docker compose file to run NGINX and sample weather service application on another container.