New to Traefik and can't even get off the ground

Hey folks, I've tried to follow several Traefik tutorials and like Traefik's documentation say, I decided to just keep it really simple for now.

I am following this tutorial to see if I can get Traefik running on a VM. This VM has external internet access as I can ping external domains from it.

If follow the tutorial above and run it with docker compose (without the -d so I can see the logs) I get an error saying:

traefik  | time="2022-07-13T15:17:02Z" level=error msg="Unable to obtain ACME certificate for domains \"\": cannot get ACME client get directory at '': Get \"\": dial tcp: lookup on read udp> i/o timeout" ACME CA="" routerName=traefik-secure@docker rule="Host(``)" providerName=http.acme

I've redacted my domain above.

I have created the network as suggested, but whenever I get into that container, I can see that it doesn't have external access, so that is probably causing my issue. This only seems to happen with Traefik, as I can ping external domains from other containers in this VM.

What am I missing here?

Thanks in advance