New to Traefik. Container is up. No errors. Certs are good. I have several containers running on a Raspberry Pi, with Traefik running on a NUC. All containers connect fine, except Vaultwarden.
I use config.yml to reach running containers on the Raspberry Pi. Here's what that looks like:
I suspect I'm missing something (websocket?) on Vaultwarden, however the other two containers are accessible. I've seen many label examples for Vaultwarden when it is running on the same network, but I fail to see how those work with config.yml in my situation.
Websockets usually just work over a http router and service. Are you sure your IP and port (internal/external) are correct?
You can simplify your config, passHostHeader: true is default (doc), so can be removed. And you can assign the certresolver one time globally via entrypoint (doc).
Thanks for your reply. Your questions got me to ping and curl the IP and port. It turns out, I transposed the port number. No matter how many times I stared at it, it didn't pop out for me.
Appreciate too the simplification suggestions. I've commented out the passHostHeader to test, and I'll need to sort out the certresolver.
I'm sure I'll be back with new threads, as this is quite different (in a good way) that Nginix Proxy Manager. I have an issue with excess subdomain certs I'll post if my web search fails.
You only need domains, if you want to use wildcards with dnsChallenge. For regular domains, Traefik LetsEncrypt will use domain names from rule=Host().
That probably accounts for all the subdomain cert entries in acme.json. When I initially set up Traefik, certs were created for two domains (including wildcard certs). As I added docker container entries I noticed that certs for subdomains were being added even though the appropriate wild card cert was present. This seemed odd, and more so since certs already existed on Cloudflare. Obviously cause/effect is not logically appearing to me.
Complicating this, or maybe related is that it seems I have similar entries in compose.yaml, traefik.yml as well as within the labels for my various docker containers. I've tried to get clarity from “Copilot” but it does not integrate well the various yaml files. Clearly I'm stumbling through this.
YouTube videos are too simplistic. They basically quit with a dashboard walkthrough, and show a basic nginx test container, or whoami.