A lock on a blue door
A lock on a blue door
Photo by Erik Mclean on Unsplash

Why using HTTPS in development?

The need to use HTTPS in development may seem anecdotal, however, several cases meet this need:

  • To perform certain tests locally (such as lighthouse audits)
  • Avoid CORS errors thanks to reverse proxies
  • To respond to point number 10 of the 12 factor app which suggests that the production and dev environments should be as similar as possible.

How to implement it using docker-compose?

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:

  • An “API” written in Flask / Python
  • A whoami container (it’s…

Axel Vallée

I’m good at Googling and browsing Stack Overflow

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store