Docker + Traefik + Coder - connection timed out from workspace containers

Hi!

I'm running Coder on a Docker instance, with Traefik reverse proxy to access the Coder dashboard.
I have successfully uploaded initial code-server Terraform templates and created a test workspace, then I went to inspect the container log and see this repeatedly

+ trap waitonexit EXIT
+ mktemp -d -t coder.XXXXXX
+ BINARY_DIR=/tmp/coder.TMTlpf
+ BINARY_NAME=coder
+ BINARY_URL=https://coder.domain.com/bin/coder-linux-amd64
+ cd /tmp/coder.TMTlpf
+ :
+ status=
+ command -v curl
+ curl -fsSL --compressed https://coder.domain.com/bin/coder-linux-amd64 -o coder
curl: (28) Failed to connect to coder.domain.com port 443: Connection timed out
error: failed to download coder agent
       command returned: 28
Trying again in 30 seconds...
+ status=28
+ echo error: failed to download coder agent
+ echo        command returned: 28
+ echo Trying again in 30 seconds...
+ sleep 30
+ :


It seems to me that the container is not able to access the address (no loopback?) as external clients do. I have checked Traefik's access logs and it doesn't seem like there are any incoming requests from the container.

Coder, Traefik and workspace containers all locate on the same server (that's why I mentioned loopback before)

Am I missing something? Thanks!
Was this page helpful?