I am using docker compose to set up my container, there are two sets of routes, one for internal traffic and one for external traffic. These are separated because I intend to add a rule for a prefix and prefix stripping to the external traffic route. Either route will work if I comment out the other one, but both routes will not work at the same time. They both have different names. According to the documentation, this should work. I am using Traefik 3.6.
labels:
- "traefik.enable=true"
# Local access, host only
- "traefik.http.routers.foundry14lan.rule=Host(\`vtt.homelab.lan\`)"
- "traefik.http.routers.foundry14lan.entrypoints=websecure"
- "traefik.http.routers.foundry14lan.tls=true"
- "traefik.http.services.foundry14lan.loadbalancer.server.port=30000"
# External access, https, with path that needs to be stripped
- "traefik.http.routers.foundry14web.rule=Host(\`<redacted>\`)"
- "traefik.http.routers.foundry14web.entrypoints=websecure"
- "traefik.http.routers.foundry14web.tls=true"
- "traefik.http.services.foundry14web.loadbalancer.server.port=30000"
If I comment out either set of rules, the router shows up as expected in the dashboard and the rules work. If both sets of rules are in, neither shows up in the dashboard and the routes give a 404 error.