With web projects running inside Docker containers.
To develop a web project¹ on a local machine, we usually launch a web-server listening at http://localhost:port.
In production, the url for this project is https://my-app.com.
We want to mimic the production environment on the local computer. How can we have a custom url and HTTPS, like https://my-app.local?
In this article, we are going to:
- Create custom urls for several web projects, like
- Set a reverse-proxy to route the requests to these urls to specific Docker containers.
- Add HTTPS with self-signed certificates.