tailscale-deploy
Skill1 starsChanged 3 months agoMITView on GitHub
Use when the user wants a service reachable privately from their own devices (laptop, phone) without exposing it to the public internet, wants to share a local dev server with a specific person on their tailnet, or says "deploy this on my tailnet" / "make this accessible via Tailscale".
- Pipes a download into a shell
- Installs packages
In this repository58 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- api-test-suiteSkill
- ascii-artSkill
- caddy-reverse-proxySkill
- changelog-generatorSkill
- color-palette-generatorSkill
- cron-taskSkill
- csv-toolkitSkill
- discord-bot-buildSkill
- docker-umbrellaSkill
- dotfiles-manageSkill
- email-sendSkill
- env-config-managerSkill
- excalidraw-diagramSkill
- file-organizerSkill
- forgejo-self-hostSkill
- frontend-design-toolkitSkill
- generate-dockerfileSkill
- gif-searchSkill
- git-backupSkill
- github-actions-ciSkill
- hallmark-readmeSkill
- http-api-testerSkill
- invoice-generatorSkill
- json-formatterSkill
- log-analyzerSkill
- markdown-linterSkill
- markdown-to-pdfSkill
- markdown-to-slidesSkill
- mcp-server-buildSkill
- media-id-mappingSkill
- movie-catalogue-siteSkill
- movie-night-calendarSkill
- ntfy-notifierSkill
- ocr-documentsSkill
- ollama-localSkill
- openapi-generatorSkill
- password-generatorSkill
- pdf-extractSkill
- portfolio-upkeepSkill
- qr-code-generatorSkill
- regex-testerSkill
- resume-builderSkill
- rss-monitorSkill
- searxng-self-hostSkill
- skill-publishSkill
- skill-registry-catalogSkill
- skills-portfolio-scaffoldSkill
- snippet-managerSkill
- sqlite-dashboardSkill
- streaming-provider-embedsSkill
- telegram-bot-buildSkill
- tmdb-metadataSkill
- uptime-kuma-self-hostSkill
- watchlist-syncSkill
- webhook-receiverSkill
- youtube-transcriptSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 45
If the output shows the machine as idle or not connected, run:
- Very specific: line 167
Not checking
tailscale statusaftertailscale up: If the machine doesn't appear in the tailnet device list, tailscale up didn't … - Distinctive: line 170
Corporate/restrictive networks blocking WireGuard: If UDP 41641 outbound is blocked, Tailscale falls back to its DERP relay automatically, …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
tailscale-deploy
Overview
Deploy a service on a Tailscale tailnet. The service becomes privately accessible from any device on the user's tailnet — no public exposure, no port forwarding, no cloud relay.
When to Use
- The user wants to run a web service and access it from their laptop, phone, or other machines without exposing it to the internet.
- The user wants to share a local dev server with someone on their tailnet.
- The user wants to deploy a Docker service with private network access.
- The user says "deploy this on my tailnet", "make this accessible via Tailscale", or "I want to access this from my phone".
Prerequisites
- Tailscale installed — check with
tailscale status. If not installed:- Linux:
curl -fsSL https://tailscale.com/install.sh | sh - macOS:
brew install tailscaleor install from the App Store - Windows: download from https://tailscale.com/download
- Linux:
- Tailscale authenticated —
tailscale upif not already authenticated. The user needs a Tailscale account (free for personal use, up to 100 devices). - Docker installed — for container-based deployments. Check with
docker --version.
Workflow
Step 1: Verify Tailscale is running
tailscale statusIf the output shows the machine as idle or not connected, run:
sudo tailscale upOn Windows, run tailscale up in an elevated terminal.
Step 2: Choose a deployment method
Two methods, depending on what the user is deploying:
Method A — Direct serve (existing local service):
The service is already running on a local port (e.g., localhost:8080). Use tailscale serve to expose it over the tailnet with HTTPS.
# Expose localhost:8080 over the tailnet with HTTPS
tailscale serve --https 8080The service is now accessible at https://<machine-name>.<tailnet-name>.ts.net from any device on the tailnet.
To check what's being served:
tailscale serve statusTo stop serving:
tailscale serve --https offMethod B — Docker with Tailscale sidecar: Deploy a Docker container with a Tailscale sidecar that joins the tailnet and routes traffic to the service.
Create a docker-compose.yml:
version: "3.8"
services:
app:
image: your-app-image
restart: unless-stopped
networks:
- tsnet
tailscale:
image: tailscale/tailscale:latest
restart: unless-stopped
hostname: my-service
environment:
- TS_AUTHKEY=tskey-auth-XXXXX # generate at https://login.tailscale.com/admin/settings/keys
volumes:
- tailscale-state:/var/lib/tailscale
networks:
- tsnet
networks:
tsnet:
driver: bridge
volumes:
tailscale-state:Then:
docker compose up -dThe service is accessible at http://my-service.<tailnet-name>.ts.net:PORT from any tailnet device.
Step 3: Verify accessibility
From another device on the same tailnet:
# Method A
curl https://<machine-name>.<tailnet-name>.ts.net
# Method B
curl http://my-service.<tailnet-name>.ts.net:PORTOr just open the URL in a browser on any tailnet device.
Step 4: Clean up (when the user wants to stop)
# Method A
tailscale serve --https off
# Method B
docker compose downTailscale Serve Reference
| Command | What it does |
tailscale serve --https PORT | Expose localhost:PORT over HTTPS on the tailnet |
tailscale serve --http PORT | Expose localhost:PORT over HTTP on the tailnet |
tailscale serve --https off | Stop serving |
tailscale serve status | Show what's being served |
tailscale funnel PORT | Expose to the PUBLIC internet (not tailnet-only) — use with caution |
Important: tailscale serve is tailnet-only (private). tailscale funnel is public internet exposure. Most users want serve, not funnel. Always confirm with the user before using funnel.
Common Pitfalls
- Docker sidecar
TS_AUTHKEYexpired or non-ephemeral. Auth keys expire and non-ephemeral keys leave stale devices in the admin console after teardown. Generate a fresh ephemeral key at https://login.tailscale.com/admin/settings/keys for container use. - Assuming
tailscale serve --https 8080serves on localhost:8080. It actually serves on port 443 of the tailnet interface; the local service keeps its original port. Don't look for it onlocalhost:443. - Putting the app and the Tailscale sidecar on the default Docker network. The sidecar can't route to the app unless both share a custom bridge network, as in the compose example — the default network isolates them.
- Reaching for
tailscale funnelwhenservewas meant.funnelexposes the service to the entire public internet;serveis tailnet-only. Default toserveand confirm explicitly before ever usingfunnel. - Not checking
tailscale statusaftertailscale up. If the machine doesn't appear in the tailnet device list,tailscale updidn't complete — re-authenticate rather than assuming the service is reachable. - Corporate/restrictive networks blocking WireGuard. If UDP 41641 outbound is blocked, Tailscale falls back to its DERP relay automatically, but performance suffers — flag this to the user rather than treating a slow connection as a bug.
Verification Checklist
tailscale statusshows the machine as connected (notidle) before deploying.- Service responds to
curlfrom a second device on the tailnet, not just from localhost on the host machine. - Confirmed with the user whether
serve(tailnet-only) orfunnel(public) was intended —funnelwas never used without explicit confirmation. - For Docker sidecar deployments,
tailscale serve statusor the sidecar's logs show it joined the tailnet under the expected hostname. - Cleanup step (
tailscale serve --https offordocker compose down) documented for when the user wants to stop serving.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

