Enable HTTPS for your Docker website


The following article introduced how to use Nginx to enable HTTPS service for your website

https://www.digitalocean.com/community/tutorials/how-to-secure-a-containerized-node-js-application-with-nginx-let-s-encrypt-and-docker-compose

Basically, we create an Nginx proxy server as our frontend server. The HTTPS connection is built between the browser and the Nginx server. Then the Nginx server talks to other backend servers, such as NodeJS server, in plain HTTP on docker local network.

The key configuration file is nginx.conf. We can configure multi domains on a single IP address, configure round robin load balance, etc.

The TLS certificate is get from letsencrept for free.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.