I've been using my rosskevin/mediabox
setup for many years with traefik, it's worked well. Recently, it became unavailable. I try to keep containers up to date etc, but can't seem to narrow down the failure. My ubiquity edge router was up for 5 months, so that wasn't it (though I have since restarted). This was exclusive to 443
, but I also just ensured 80
was open and forwarded properly. This was a working https
scenario previously.
I have (today) broken this down to the most fundamental test case to try and identify the issue. I cannot get the simplest whoami
to work (from an external perspective). Here is a test config, comments indicate what works/doesn't work:
# https://doc.traefik.io/traefik/getting-started/quick-start/
# works (on the local net)
# curl -H Host:whoami.example.com http://127.0.0.1
# curl -H Host:whoami.example.com http://192.168.1.191
# doesn't work from inside the net, doesn't work from
# outside the net e.g. mobile http://whoami.example.com
# curl -H Host:whoami.example.com http://74.123.123.123 (example wan ip)
services:
traefik-test:
image: traefik:v3.3
command:
- --api.insecure=true
- --providers.docker
# Set default rule to use container name as subomain e.g. whoami.example.com
- --providers.docker.defaultRule=Host(`{{ index .Labels "com.docker.compose.service" }}.${DOMAIN}`)
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
whoami:
image: traefik/whoami
The traefik service also looks good:
I'm guessing this was an update that changed things, but I can't seem to even get the basics to work! I'm missing something fundamental here...how do I figure out what the blocker is? Cloudflare is paused
, DNS proxies off.
What are my next steps to verify/debug external access?