Working on Multiple Web Projects with Docker Compose and Traefik

Docker Compose is a useful tool for setting up local development environments, but it can be cumbersome when working with multiple projects due to port clashes. However, there are ways to make managing multiple projects more enjoyable. One solution is to use a separate compose.override.yaml file, which can be automatically merged into the main compose.yaml file. This allows individual developers to override the default settings and choose their own port numbers. Another option is to use Traefik, a free software edge router that can act as a reverse-proxy in container-based setups. With Traefik, developers can assign names to projects instead of remembering port numbers. By combining compose.override.yaml and Traefik, it’s possible to run multiple web projects simultaneously and access them easily with memorable names.

https://georgek.github.io/blog/posts/multiple-web-projects-traefik/

To top