Category: Docker

The need to use HTTPS in development may seem anecdotal, however, several cases meet this need: To explain how to implement an HTTPS environment in dev, I will use a small project that will serve as an example throughout this article. This project is based on 2 microservices: The HTTP server I will use for this project is Traefik as described in docs: Traefik is an open-sourceEdge Router that makes publishing your services a fun and easy experience.

Finally, the last utility we will use, and it’s the one who will allow us to use HTTPS locally is mkcert.

In the Traefik configuration, we defined some TLS certificates to use, to generate those we will simply just use mkcert.

This method give you the ability to work in an environment who is closer to your production environment will giving you a way to work on your code without building/deploying to a staging/production area every time to verify some implementation where you might need HTTPS.

Related Articles