Skip to content

Commit 175fe77

Browse files
authored
Merge pull request #1187 from naimhasim/docktail
feat: add DockTail template
2 parents 7d3ac4f + 03cede0 commit 175fe77

4 files changed

Lines changed: 73 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
version: "3.8"
2+
services:
3+
docktail:
4+
image: ghcr.io/marvinvr/docktail:1.6.0
5+
restart: unless-stopped
6+
depends_on:
7+
- tailscale
8+
dns:
9+
- 1.1.1.1
10+
- 8.8.8.8
11+
environment:
12+
- TAILSCALE_OAUTH_CLIENT_ID=${TAILSCALE_OAUTH_CLIENT_ID}
13+
- TAILSCALE_OAUTH_CLIENT_SECRET=${TAILSCALE_OAUTH_CLIENT_SECRET}
14+
volumes:
15+
- /var/run/docker.sock:/var/run/docker.sock:ro
16+
- tailscale-socket:/var/run/tailscale
17+
18+
# Tailscale sidecar (upstream "Tailscale Sidecar" setup): runs its own
19+
# tailscaled so the host does not need Tailscale installed. Userspace
20+
# networking avoids /dev/net/tun and extra capabilities; host networking
21+
# lets it reach container IPs on any Docker network.
22+
tailscale:
23+
image: tailscale/tailscale:v1.102.5
24+
restart: unless-stopped
25+
network_mode: host
26+
environment:
27+
- TS_AUTHKEY=${TAILSCALE_AUTH_KEY}
28+
- TS_HOSTNAME=${TAILSCALE_HOSTNAME}
29+
- TS_EXTRA_ARGS=--advertise-tags=${TAILSCALE_TAGS}
30+
- TS_USERSPACE=true
31+
- TS_AUTH_ONCE=true
32+
- TS_STATE_DIR=/var/lib/tailscale
33+
- TS_SOCKET=/var/run/tailscale/tailscaled.sock
34+
volumes:
35+
- tailscale-state:/var/lib/tailscale
36+
- tailscale-socket:/var/run/tailscale
37+
38+
volumes:
39+
tailscale-state:
40+
tailscale-socket:

‎blueprints/docktail/docktail.png‎

10.9 KB
Loading

‎blueprints/docktail/meta.json‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"id": "docktail",
3+
"name": "DockTail",
4+
"version": "1.6.0",
5+
"description": "DockTail exposes Docker containers as native Tailscale Services using labels, with no published ports and no per-container Tailscale devices.",
6+
"logo": "docktail.png",
7+
"links": {
8+
"github": "https://github.com/marvinvr/docktail",
9+
"website": "https://docktail.org/",
10+
"docs": "https://docktail.org/docs/"
11+
},
12+
"tags": [
13+
"networking",
14+
"tailscale",
15+
"vpn",
16+
"docker"
17+
]
18+
}

‎blueprints/docktail/template.toml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[variables]
2+
3+
[config]
4+
mounts = []
5+
6+
[config.env]
7+
# Auth key for the bundled tailscaled sidecar (Admin Console -> Settings -> Keys).
8+
# Use a tagged, reusable or one-off key; the node must carry a tag that your
9+
# ACL autoApprovers allow to advertise services.
10+
TAILSCALE_AUTH_KEY = ""
11+
TAILSCALE_HOSTNAME = "docktail"
12+
TAILSCALE_TAGS = "tag:server"
13+
# OAuth client used by DockTail to create Tailscale Services.
14+
TAILSCALE_OAUTH_CLIENT_ID = ""
15+
TAILSCALE_OAUTH_CLIENT_SECRET = ""

0 commit comments

Comments
 (0)