2023-12-28 19:33:50 +00:00
|
|
|
services:
|
|
|
|
tailscale:
|
2023-12-30 20:24:43 +00:00
|
|
|
image: ghcr.io/jbowdre/tailscale-docker:latest
|
2023-12-28 19:33:50 +00:00
|
|
|
container_name: tailscale
|
|
|
|
environment:
|
2023-12-29 04:20:00 +00:00
|
|
|
TS_AUTHKEY: ${TS_AUTHKEY:?err} # from https://login.tailscale.com/admin/settings/authkeys
|
2023-12-30 20:24:43 +00:00
|
|
|
TS_HOSTNAME: ${TS_HOSTNAME:-ts-docker} # optional hostname to use for this node
|
2023-12-30 03:36:35 +00:00
|
|
|
TS_STATE_DIR: "/var/lib/tailscale/" # store ts state in a local volume
|
2023-12-30 03:58:39 +00:00
|
|
|
TS_TAILSCALED_EXTRA_ARGS: ${TS_TAILSCALED_EXTRA_ARGS:-} # optional extra args to pass to tailscaled
|
|
|
|
TS_EXTRA_ARGS: ${TS_EXTRA_ARGS:-} # optional extra flags to pass to tailscale up
|
2023-12-28 22:20:44 +00:00
|
|
|
TS_SERVE_PORT: ${TS_SERVE_PORT:-} # optional port to proxy with tailscale serve (ex: '80')
|
2023-12-29 19:43:50 +00:00
|
|
|
TS_FUNNEL: ${TS_FUNNEL:-} # if set, serve publicly with tailscale funnel
|
2023-12-28 19:33:50 +00:00
|
|
|
volumes:
|
|
|
|
- ./ts_data:/var/lib/tailscale/
|
|
|
|
myservice:
|
|
|
|
image: nginxdemos/hello
|
|
|
|
network_mode: "service:tailscale"
|