Docker and SSL with Tailscale – Need some guidance!

0
0
Asked By TechieNinja29 On

Hey everyone! I'm fairly new to Docker and I've got some questions. I've set up several Docker containers on my homelab, like a couple of *arrs and music streaming services, and I'm currently using Tailscale for a VPN to connect everything. Usually, I access my services via http://[hostname]:[port]. However, I'm looking to enable HTTPS to eliminate those annoying login screen warnings. Since I don't want to use my domain for this, I'll need to create a self-signed certificate. My questions are: A) If I generate a self-signed certificate, do I only need to install it on my home server, or will I have to set it up in every single Docker container? B) If I do need to set it up in every container, could someone provide a quick and secure guide on how to do that? By the way, I'm running six Docker containers managed by docker-compose, and Tailscale isn't running as a Docker container on my server.

3 Answers

Answered By DockerDreamer101 On

I totally understand your confusion! One thing to clarify is how you're running Tailscale. Do you have it set up directly on your home server (bare metal), or is it running inside one of your containers? Both setups work, but they have their own pros and cons.

Answered By BasiliskDude On

Honestly, you don't necessarily need an SSL certificate if you're just accessing your services locally over a secure connection like Tailscale or SSH. But if you do need secure endpoints for public access, I recommend using Caddy as a reverse proxy. Also, Tailscale can provide a TLS certificate if you're using the Funnel feature.

Answered By TechieNinja29 On

I'm running Tailscale on bare metal.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.