Expose Docker containers as Tailscale Services using label-based configuration.
Expose Docker containers as Tailscale Services using label-based configuration.
Unleash your containers as Tailscale Services.
DockTail watches Docker containers, reads docktail.* labels, and exposes matching containers as Tailscale Services. App containers do not need published Docker ports by default; DockTail proxies directly to their Docker network IPs.
DockTail uses native Tailscale Services, not per-container Tailscale devices.
| DockTail | TSDProxy | ScaleTail | tsbridge | Plain Services | |
|---|---|---|---|---|---|
| Native Tailscale Services | ✅ | ❌ | ❌ | ❌ | ✅ |
| Configured via Docker labels | ✅ | ✅ | ❌ | ✅ | ❌ |
| Apps do not consume separate Tailscale device slots | ✅ | ❌ | ❌ | ❌ | ✅ |
| No app port publishing | ✅ | ⚠️¹ | ⚠️² | ⚠️¹ | ⚠️³ |
| Automatic Docker reconciliation | ✅ | ✅ | ❌ | ✅ | ❌ |
| Low manual setup after install | ✅ | ✅ | ⚠️⁴ | ✅ | ❌ |
…docker compose up -d
curl http://myapp.your-tailnet.ts.netThis assumes the Docker host is connected to Tailscale and allowed to advertise services. See the full docs for host setup, sidecar setup, rootless Docker, OAuth permissions, ACLs, labels, Funnel, and examples.
For Docker secrets or other mounted secret files, set FILE__TAILSCALE_OAUTH_CLIENT_ID / FILE__TAILSCALE_OAUTH_CLIENT_SECRET or TAILSCALE_OAUTH_CLIENT_ID_FILE / TAILSCALE_OAUTH_CLIENT_SECRET_FILE to the mounted file paths instead of putting the values directly in the environment.
Expose an app with Tailscale HTTPS:
labels:
- "docktail.service.enable=true"
- "docktail.service.name=api"
- "docktail.service.port=3000"
- "docktail.service.service-port=443"Expose a database over TCP:
labels:
- "docktail.service.enable=true"
- "docktail.service.name=db"
- "docktail.service.port=5432"
- "docktail.service.protocol=tcp"
- "docktail.service.service-port=5432"Preserve the tailnet client IP on a TCP reverse proxy:
labels:
- "docktail.service.enable=true"
- "docktail.service.name=traefik"
- "docktail.service.port=443"
- "docktail.service.protocol=tcp"
- "docktail.service.service-port=443"
- "docktail.service.proxy-protocol=2"Expose a service publicly with Tailscale Funnel:
labels:
- "docktail.funnel.enable=true"
- "docktail.funnel.port=3000"
- "docktail.funnel.funnel-port=8443"Mount an HTTP(S) Funnel at a path:
labels:
- "docktail.funnel.enable=true"
- "docktail.funnel.port=3000"
- "docktail.funnel.path=/webhook"Once you run DockTail on more than one machine, "is it still up?" gets tedious. DockTail Cloud is a hosted dashboard for that — and because it already has the Docker and Tailscale context, it tells you which kind of broken you're looking at:
● down · OOM-killed → Docker reported an OOM kill
● local up · awaiting approval → the app is fine, the exposure isn't
● host offline · heartbeat missing → the box stopped reportingIt rides along with the agent you already run — no second binary. Set one environment variable and the same container starts reporting:
environment:
- DOCKTAIL_CLOUD_KEY=${DOCKTAIL_CLOUD_KEY} # from cloud.docktail.orgWithout the key the module is completely inert: no connection is opened and DockTail behaves exactly as before. The link is outbound-only and metadata-only — the protocol has no exec, deploy, or shell message types, which you can verify in cloud/.
Explore DockTail Cloud · open the dashboard · agent setup
Human docs: https://docktail.org/docs/
Markdown docs: https://docktail.org/docs.md
LLM guide: https://docktail.org/llms.txt
Full LLM docs: https://docktail.org/llms-full.txt
DockTail Cloud overview: https://docktail.org/cloud/
Optional Cloud agent setup: docs/06-cloud.md
The canonical documentation source lives in docs/. The site at
docktail.org is built from a separate repository, which pins this one as a
submodule and renders those Markdown files with tools/docsgen at build time.
go build -o docktail .
docker build -t docktail:latest .AGPL v3
By @marvinvr
No open issues yet, or sync has not completed.