Traefik 2 with Letsencrypt and multiple domains per host

Hey there - I'm using docker-compose and with version 1.7 I was able to add multiple domains to my app with the following and it "just worked"!

"traefik.basic.frontend.rule=Host:apple.abc.com,banana.xyz.com"

However with version 2 I'm really struggling to get this to work, the closest I've got is this but it doesn't work. Has anyone got any guidance for me?

"traefik.http.routers.abc.rule=Host(`apple.abc.com`)"
"traefik.http.routers.banana.rule=Host(`banana.xyz.com`)"

Thanks in advance...
Fergal.

"traefik.http.routers.thisroutersname.rule=Host(`apple.abc.com`,`banana.xyz.com`)"
1 Like

Oh my word! I can't believe I didn't try this, thanks so much @cakiwi

1 Like