Published Nov 27, 2026, 5:00 PM EST Abhishek is an author at XDA who covers computing. He has loved computers since he got the Lenovo G570 in 2012. Abhishek holds a master's degree in computer applications and began his writing career in 2018. He loves writing how-to articles, listicles, and informational posts on popular operating systems and web services. He closely follows the Windows Insider program and tests new Insider builds to discover upcoming experimental features and upgrades. His past work includes long-term collaborations with reputed publications like Tom's Hardware, and Windows Latest. When not writing anything, he is busy watching new episodes of One Piece or searching for something binge-worthy. Docker is a fantastic tool to isolate your self-hosted tools from each other and maintain a robust, fail-proof home server. The traditional way to access the web portal of any container is via its published port. Each port number is a direct gateway to access the portal, but it gets tedious after a point. You have to be careful with the port number assignment and also need to remember them. Exposing ports is something that we rarely pay attention to, and it slowly becomes complex. Tailscale is already a staple tool on my home servers, and if you want to ditch the port mappings, you can use Tailscale Sidecars. These are individual containers that work alongside each service and give them a unique Tailscale identity. It’s even possible to enable HTTPS support for each container. But there’s a tool that makes it much easier. Tailscale Sidecar is useful But there's still a lot of legwork When I first learned about Tailscale’s sidecar feature, I was sure that it would solve the external port publishing problems. The feature simplifies the idea and reduces the need to publish ports on my home server. Tailscale Sidecar gives each container a unique network identity, hostname, and IP address. So, there would be no need to publish the external port for the application on the host. I can use the Tailscale IP as a replacement for port publishing. It sounds easy until you start creating sidecars for each self-hosted tool deployed as a Docker container. Now, you need to authenticate each Sidecar, specify the internal port for each self-hosted tool, and configure Docker networking. The result is worth the effort because you can now access the web portals of the tools with simple URLs and no dependency on port publishing. But doesn't it seem like too much work? On a low-end SBC like a Raspberry Pi Zero 2 W, you might need to do this for 3–4 lightweight containers. On more powerful servers with dozens or more containers, it becomes frustrating. I haven't even included the additional time needed to configure HTTPS support for each one. So, is Sidecar worth the effort? Well, no. It's a perfect tool, but you can improve this whole process with a tool like TSDProxy. Shrinking everything to just one container TSDProxy acts as a central manager The main selling point of Tailscale is a private, secure network where all the connected devices can communicate with each other. You can access your home servers even when you are outside the local network with Tailscale. But system-wide Tailscale deployment and then subsequent Tailscale Serve mappings for each container become confusing. It doesn’t assign a new identity to each Docker container, so managing access to individual containers can become cumbersome. To sum up my problems, I’m frustrated with individual sidecar deployments, authentication, and the lack of automatic HTTPS support. TSDProxy addresses all three pain points and works as a separate container. When you deploy the TSDProxy container, you effectively get rid of individual sidecar deployments, and it can still manage separate Tailscale proxy identities. Your container list remains succinct. After a one-time setup and authentication, all the containers configured to use TSDProxy become accessible on your Tailnet. A typical setup of TSDProxy involves generating a Tailscale authentication key. You need to visit the Settings page in the Tailscale dashboard and then generate a new key. Name it, keep the “Reusable” option checked, and then copy the generated key somewhere safe. Thereafter, you can create all the necessary folders for the tool with the following commands: mkdir -p /opt/tsdproxy-stack/config mkdir -p /opt/tsdproxy-stack/data mkdir -p /opt/tsdproxy-stack/authkey Now, open the authkey file, paste the key, and save the file. You can also restrict direct access to this file. nano /opt/tsdproxy-stack/authkey/tsdproxy-authkey Next, you need to create the configuration and compose files, and then deploy the TSDProxy container on your server. Most of the work is done, and now you only need to tweak the config files of each container to use the TSDProxy network. You also don’t need to publish a new port for access like before. However, you need to redeploy each container so TSDProxy can begin automatic detection and configure its Tailscale access. Easily add new containers to the Tailnet No more individual sidecar deployments In the previous section, all the existing containers now use the TSDProxy connection to get new Tailscale identities. But if I wanted to add a new container and also assign it a new Tailscale identity. I would only need to modify the config files of each container to use the proxy connection and recreate them with Docker Compose. labels: tsdproxy.enable: "true" tsdproxy.name: "vaultwarden" tsdproxy.port.1: "443/https:80/http" These three lines tell the Vaultwarden container to use the TSDProxy connection, assign a friendly name to it, and use the internal port 443 for HTTPS and 80 for HTTP. It’s a small effort compared to creating new sidecars for each container. One more thing that it achieved without configuration is HTTPS support. I didn’t need to configure HTTPS certificates individually because TSDProxy enables it by default for each configured container using Tailnet addresses. Smarter container networking TSDProxy simplifies remote access and HTTPS support for your Docker containers. You switch from individual sidecars to a single container to manage Tailscale identities for the rest of the Docker containers. No more manual sidecar configurations, individual authentications, or Tailscale Serve commands. Tailscale OS Windows, macOS, Linux, Android, iOS Tailscale is a tool that allows you to create specific network connections so you can remotely access resources within a private network.
I gave each Docker container its own Tailscale address, and stopped exposing ports on my home server
Full Article
Original Source
Read the full article at Xda-developers →KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.