I'm using docker and have a few different services, each one is on a different subdomain.
When only one is running, Traefik will route and work normally.
When I run the second container, both of them get a gateway timeout.
The label in my docker-compose is as below:
and the other has
Is there a better way of handling multiple subdomains?
That is how you do it. There must be something else in the config/labels messing you up.
Posting the full config will help.
Sure, this is practically identical in both containers, with the exception being the 'app1' and subdomains of course.
Yes looks okay to me.
One think I have experienced with Traefik and the containers being on multiple networks is that traefik will flip between the service having the two IPs.
Traefik only being on one of those networks will timeout. Use the
traefik.docker.network= to identify which network traefik should use to connect to the container(s).
I think that was the ticket!
Thanks for the help.