How to Self-Host Headscale with Docker Compose

Поділитися
Вставка
  • Опубліковано 26 гру 2024

КОМЕНТАРІ • 33

  • @jonathandoe7490
    @jonathandoe7490 2 місяці тому

    I wanted to come back here and say thank you, in my opinion you are the only one that provided clear and concise instructions on how to get this up and running. Other youtubers dont even mention creating the config and data folder yourself so its not write protected and owned by you instead of root. They also dont mention a config.yaml file thanks to you i have this amd headscale-admin webui running perfectly.

    • @Techdox
      @Techdox  2 місяці тому +1

      Glad to hear it! Yeah unfortunately I feel like some of the creators needs some real world experience, rather than just following docs :)
      Glad I could help

  • @jonathandoe7490
    @jonathandoe7490 6 місяців тому +9

    Appreciate the video I think it would be great if you covered how to connect the Ui to headscale. Extremely few if any content creators have covered it. I know this as i just spent the last 12 hours struggling to get this up and running.

    • @Techdox
      @Techdox  6 місяців тому +3

      Yeah, as mentioned the UI will need to be a video of its own, as there’s a few out there and half of them are broken I found

  • @JasonLearnsThings1
    @JasonLearnsThings1 6 місяців тому +1

    Quick concise video, very good sir!

  • @cattivello
    @cattivello 4 місяці тому +1

    thanks. nice and quick.
    One question:
    About the manifest for headscale/headscale: you use 0.22.3 and not latest. how do we found the latest tag?
    thanks

    • @Techdox
      @Techdox  4 місяці тому

      @@cattivello you can check out the image on Docker Hub and see what their latest version is or just use the latest flag

  • @dav1dw
    @dav1dw 6 днів тому

    Only 6 months later and things have sure changed. Not a smooth process so far to get this working.. In the docker compose file, the command: headscale serve has changed to command: serve
    and I get this error: Error initializing error="failed to load configuration while creating headscale instance: server_url cannot contain the base_domain, this will cause the headscale server and embedded DERP to become unreachable from the Tailscale node." which contradicts how your setup is.

  • @mrbro9962
    @mrbro9962 3 місяці тому

    Hi, thanks for the video. I’ve followed the instructions meticulously, but I’m still encountering the error:
    WRN go/src/headscale/hscontrol/noise.go:62 > No Upgrade header in TS2021 request. If headscale is behind a reverse proxy, make sure it is configured to pass WebSockets through.
    I have Headscale set up behind Cloudflare, and I’m using cloudflared version 2024.6.0 (built 2024-06-03-2017 UTC) to connect the tunnel to Cloudflare Zero Trust. Before this, I also spent many days trying to resolve the issue without success. The main problem is that clients are unable to connect. I suspect there might be an issue with my Cloudflare configuration or something I’m missing, but I can’t figure out what it might be. Any help would be greatly appreciated. Thanks!

  •  6 місяців тому +1

    I followed your whole guide and also launched the tunnel, which seems to be working just fine. However, doing the tailscale up step returns a 500 error that I can't figure out. Would you happen to know why?

    • @Techdox
      @Techdox  6 місяців тому +1

      What’s the error? Feel free to to join the discord to discuss it

  • @sidhupolimetla
    @sidhupolimetla 4 місяці тому

    does this help avoiding the relay servers?

    • @Techdox
      @Techdox  4 місяці тому +1

      It does yeah, you have full control of the entire network.

  • @MariKirbyCastillote
    @MariKirbyCastillote 6 місяців тому

    Hello, can you make a video related to OpenProject? Thank you!

  • @MariKirbyCastillote
    @MariKirbyCastillote 6 місяців тому

    Hello, can you make a video related to Elastic Stack + Docker Compose and Penpot. Thank you!

  • @EnriqueReyes
    @EnriqueReyes 6 місяців тому

    Great video. Could self hosted NetBird be a better option than Headscale?

    • @Techdox
      @Techdox  6 місяців тому

      Netbird is a solid alternative and I’ll cover that as well. Comes down to preference at that point I believe

  • @NassibIbrahim
    @NassibIbrahim 6 місяців тому

    Awesome. Will try that!!

    • @Techdox
      @Techdox  6 місяців тому

      Let me know how you get on :)

  • @senj3ru
    @senj3ru 6 місяців тому

    After write tailscale uo --login server, tailscale command not found :( What wrong?

    • @Techdox
      @Techdox  6 місяців тому +1

      You need the client downloaded on your machine

  • @talccott
    @talccott 6 місяців тому

    Did someone else get this error in docker: failed to save private key to disk: open : no such file or directory"

    • @Techdox
      @Techdox  6 місяців тому

      Did you make the volume folders manually and is your user part of the docker group?

    • @danbrown586
      @danbrown586 3 місяці тому

      I ran into that error when trying to install HS using Docker, and my solution was to just abandon the Docker part (since the HS devs don't recommend it anyway) and install HS on bare metal using their .deb package. But other videos I've seen since then have suggested that you need to create the database file--just "touch db.sqlite" in whatever directory you've specified for data.

    • @platypusaf
      @platypusaf 2 місяці тому

      There's quite a few reasons you could have run into this error. The best advice I can give that will account for as many of these as possible is to rebuild from scratch and follow the video as close as possible. The setup guide will get you a working headscale instance and most errors will be from user deviations. If you made any changes that were necessary for your use case, triple check them. Without further understanding of your setup, troubleshooting will feel like a rat chase.
      That being said, here are my guesses for where things went wrong.
      * You failed to properly define your volumes in the docker compose
      * You used a different version of the headscale image (this guide uses 0.22.3)
      * You used a different version of the config.yaml file (Try copying the file contents directly)

  • @Snoekverslaafde
    @Snoekverslaafde 6 місяців тому

    Not working for me...

  • @simuman
    @simuman 6 місяців тому

    Hey Nick, great video as usual. Any chance you can do a follow up with the nginx setup with some form of authentication like Authentik and how to configure so any external access requires authentication before accessing services. Hope this is possible, keep up the great videos they have helped me alot.

    • @Techdox
      @Techdox  6 місяців тому

      For sure, there’s so much to cover with headscale. Might become a little series haha

  • @maselitoamazigh1385
    @maselitoamazigh1385 6 місяців тому

    headscale gives me this error "WRN go/src/headscale/hscontrol/noise.go:62 > No Upgrade header in TS2021 request. If headscale is behind a reverse proxy, make sure it is configured to pass WebSockets through." please help

    • @Techdox
      @Techdox  6 місяців тому

      That's more of a warning and should not prevent Headscale from working. Cloudflare tunnels support websockets but from what I have read it has an issue with one, but this doesn't prevent any functionality that I have seen. Going via a reverse proxy with websocket support will remove this if it's an issue.

    • @maselitoamazigh1385
      @maselitoamazigh1385 6 місяців тому

      @@Techdox it is an issue and i cant port foward so i cant go with a reverse proxy ...

    • @Techdox
      @Techdox  6 місяців тому

      @@maselitoamazigh1385 yeah, even with that warning headscale should work fine though