Hello Selfhosted peeps!
So I just got Traefik v3 setup inside my docker environment, and successfully got SSL certs for my services hosted within docker. However, I have an external device hosting PiHole and Wireguard-UI. I am looking to use the docker instance of Traefik v3 to obtain SSL certs for the internal use only for PiHole and Wireguard-UI.
I am still new to Traefik, and have no idea if this is possible, or how I would go about doing this.
Any tips, suggestions, links to documentation; I am all ears.
These 2 resources I utilized to help further my understanding.
Thank you
I think you’re close.
You need to change
service: pihole-rtr
toservice: pihole-svc
.Do I have to redefine all of the same information I did in my Traefik yml but in this separate config.yml?
No, you just need to reference it like you have. Define once, reference many.
I hate to report back, but something isn’t quite working for pihole behind Traefik.
running “docker logs traefik” returns no error, and yet no certificate was presented to my pihole.
Not sure what else I might be missing or that I might have wrong.
Can you see the router and service in the Traefik dashboard and do they show any errors there?
Shows in traefik, no errors there.
If you’re sure you’ve got a DNS entry for the Pihole FQDN pointing at Traefik, open the dev panel in your browser (F12), switch it to the Network tab, and visit the pihole URL.
See if you get anything back and especially take note of the HTTP status codes.
I will likely have to do some tinkering, and more reading up on this from the documentation I am thinking. I am getting HTTP 200 statuses basically across the board. When going to the FQDN it doesn’t redirect to the PiHole admin page like I was expecting. Again, likely some configuration that I have wrong.
I will give this a shot! Thank you for the help. I will report back, in hopes that between your knowledge and my fumbles that someone else too can learn from this!