Commit Graph

20 Commits

Author SHA1 Message Date
Zack Spear
83c508d190 style: add CreateDocker.css for improved styling and layout consistency, remove unused AddContainer.css and UpdateContainer.css 2025-06-03 15:50:02 -07:00
Christoph
a511ae85fb Update Helpers.php
fix typo
2025-02-21 09:17:19 +01:00
Christoph
ac9df081e7 Update Helpers.php
- Necessary changes for TStarget
2025-02-21 09:03:40 +01:00
bergware
bc830d71cd Wireless support : finetuning 2025-02-06 12:30:52 +01:00
Christoph
4e9fb8a172 Split Docker PostArgs on first ; 2025-01-23 18:02:48 +01:00
Tom Mortensen
b3e355b29b xss hardening 2025-01-22 21:22:32 -08:00
Christoph
f38ce017b9 Make Tailscale State dir persistent in xml 2024-12-17 22:57:19 +01:00
Christoph Hummer
145629d26e Update Helpers.php 2024-10-27 15:08:12 +01:00
Christoph Hummer
52901e55be Fix php warning 2024-10-25 20:53:46 +02:00
Christoph Hummer
d01196498b Fix php error 2024-10-22 06:21:01 +02: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
Christoph Hummer
b62c8f5a12 Update Helpers.php 2024-09-09 17:09:15 +02:00
tom mortensen
c9333ea955 Merge pull request #1616 from mtongnz/network-display-improvements
Network info display improvements
2024-08-08 23:16:15 -07:00
Christoph Hummer
17909f889e Fix PHP Warning (#3)
- Fix PHP Warnings on Add Container page
2024-08-08 20:32:38 +12:00
dlandon
ed9b8322d4 Fix clobbering CAs $cfg variable. 2024-07-09 14:57:58 -05:00
dlandon
1524f2d69a Add "Docker PID Limit" to limit docker container PIDs. 2024-07-05 03:47:51 -05:00
Squidly271
e774c8a6a5 Docker ignore empty paths 2024-02-17 07:13:16 -05:00
Squidly271
c8f18dee44 PHP8 Fix 2023-12-12 18:27:06 -05:00
bergware
dc700749a2 Copyright update 2023-10-26 17:11:36 +02:00
Tom Mortensen
f9ec00b488 repo reorg 2023-06-02 12:49:33 -07:00