Commit Graph

10 Commits

Author SHA1 Message Date
Zack Spear
80a555ae74 feat: ui dialog responsiveness 2025-06-03 14:16:28 -07:00
Squidly271
80eb2a88fc Revert "Fix: Allow docker context menu to be either above or below depending …" 2025-05-20 15:36:00 -04:00
Squidly271
3d2ea08bc1 Fix: Allow docker context menu to be either above or below depending upon space 2025-03-19 23:01:23 -04:00
Squidly271
88ac0c88bf Update docker.js 2025-01-07 13:52:39 -05:00
Squidly271
8dfd63e5a7 Update tswebui 2024-10-28 20:02:00 -04:00
Squidly271
fcec8111c3 Update docker.js 2024-10-28 19:38:24 -04:00
root
e289d2ad7c Initial Tailscale Docker integration
- Remove exclusion from share directory from .gitignore
- Add Unraid specific container hook script
- Add Tailscale icon
- Add helptexts for Tailscale

This integration allows users to easily make use of Tailscale in their Docker containers by just clicking a switch on the Docker page.
The Tailscale plugin itself is not needed for this integration but for the best user experience it is strongly recommended to install the Tailscale plugin from Community Applications.

How this works:
1. Configure Tailscale in the Docker template in Unraid and click Apply
2. Unraid will extract the default Entrypoint and CMD from the container
3. The hook script will be mounted in the container to /opt/unraid/tailscale-hook and the Entrypoint from the container will be modified to /opt/unraid/tailscale-hook
4. The original Entrypoint and CMD from the container, alongside with the other necessary variables for Tailscale will be passed over to the container
5. When the container starts the hook script will be executed, install dependencies (currently Alpine, Arch and Debian based containers are supported), download the newest version from Tailscale and run it
6. After the first start with Tailscale the container will halt and wait for the user to click on the link which is presented in the log from the container to add the container to your Tailnet
(alternatively one could also open up a Console from the container and issue `tailscale status` which will also present the link to authenticate the container to your Tailnet)
7. The hook script will pass over the default Entrypoint and CMD which was extracted in step 2 and the container will start as usual

These steps will be repeated after Container update, force update from the Docker page and if changes in the template are made.
If the container is only Started/Restarted the hook script will detect that Tailscale is installed and only start it, if one wants to update Tailscale inside the container simply hit `force update` on the Docker page in Unraid (with Advanced View Enabled)

The integration will show a Tailscale icon on the Docker page for each Tailscale enabled Container and show some basic information from the container (Installed Tailscale Version, Online Status, Hostname, Main Relay, IPs, Exit Node, Auth Expiry,...)
When Serve or Funnel is enabled it will also generate `Tailscale WebUI` in the drop down for the container which you can open up if Tailscale is installed from the device you are accessing Unraid.
2024-10-21 23:07:11 +02:00
bergware
6d20bdc430 Make dialog window appearance more consistent 2023-10-25 18:50:51 +02:00
bergware
378eb9916c Make dialog boxes consistent 2023-10-14 14:18:56 +02:00
Tom Mortensen
f9ec00b488 repo reorg 2023-06-02 12:49:33 -07:00