Skip to content

Commit

Permalink
Add dynamic compose for tailscale (#6599)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancelot-Enguerrand authored Feb 1, 2025
1 parent d15a074 commit 1cd14a6
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/tailscale/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
"name": "Tailscale",
"available": true,
"exposable": false,
"dynamic_config": true,
"no_gui": true,
"port": 8093,
"id": "tailscale",
"tipi_version": 38,
"tipi_version": 39,
"version": "1.78.3",
"categories": ["network", "security"],
"description": "Zero config VPN. Installs on any device in minutes, manages firewall rules for you, and works from anywhere.",
Expand Down Expand Up @@ -63,5 +64,5 @@
],
"supported_architectures": ["arm64", "amd64"],
"created_at": 1691943801422,
"updated_at": 1734026149000
"updated_at": 1738177633406
}
36 changes: 36 additions & 0 deletions apps/tailscale/docker-compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"$schema": "../dynamic-compose-schema.json",
"services": [
{
"name": "tailscale",
"image": "tailscale/tailscale:v1.78.3",
"isMain": true,
"environment": {
"TS_SERVE_CONFIG": "${TAILSCALE_SERVE_CONFIG}",
"TS_ACCEPT_DNS": "${TAILSCALE_ACCEPT_DNS-false}",
"TS_AUTH_ONCE": "${TAILSCALE_AUTH_ONCE-false}",
"TS_AUTHKEY": "${TAILSCALE_AUTHKEY}",
"TS_HOSTNAME": "${TAILSCALE_HOSTNAME-runtipi}",
"TS_ROUTES": "${TAILSCALE_ROUTES}",
"TS_EXTRA_ARGS": "${TAILSCALE_EXTRA_ARGS}",
"TS_USERSPACE": "${TAILSCALE_USERSPACE-true}",
"TS_STATE_DIR": "/var/lib/tailscale"
},
"volumes": [
{
"hostPath": "${APP_DATA_DIR}/data/state",
"containerPath": "/var/lib/tailscale"
},
{
"hostPath": "${APP_DATA_DIR}/data/config",
"containerPath": "/config"
},
{
"hostPath": "/dev/net/tun",
"containerPath": "/dev/net/tun"
}
],
"capAdd": ["net_admin", "sys_module"]
}
]
}

0 comments on commit 1cd14a6

Please sign in to comment.