An example of how to use Traefik with Docker Compose to make routing easier.
- Build and run the stack with Docker Compose -
docker compose up --build
- Navigate to localhost:8080 to see the Traefik dashboard
- Navigate to deno-mfe.localhost to see the first app
Working with a single web app that handles routing is pretty straightforward, but what about multiple web apps? Traefik can simplify this process and give you a nicer experience overall. Read my article to learn more about setting up Traefik and Docker Compose and why you'd want to do this and some more explanation on the code