I finally decided that I wanted to be able to externally access some of my Docker containers from outside of my local network. I don’t want to deal with the security hassle of exposing ports on my router, so I decided to go with Tailscale.

All of my container web services are run through traefik and are accessed using hostnames I set up on my DNS server. How would I go about accessing the different web services externally since the hostnames don’t resolve?

  • Atemu@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 months ago

    Get yourself a domain name. It doesn’t cost a whole lot and also allows you to complete DNS-01 challenges for SSL certs. It’s also, like, your own. That’s also a requirement for owning your email address.
    (If you really don’t want to pay and don’t care about email, you can also use a shared domain DNS such as dedyn.io.)

    You then simply set records to the Tailscale IP addresses of the hosts and you’re good to go. Alternatively, you can also set them to the hosts’ LAN subnet addresses and forward your subnet via a single subnet router; that’s how I do it.

    • WASTECH@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      5 months ago

      I own 3 different domains and just today set up SSL services for them using Traefik (made another post for an issue I’m having with that).

      I ended up doing a subnet router and that got me what I was looking for.