2023-12-28 19:33:50 +00:00
|
|
|
services:
|
|
|
|
tailscale:
|
|
|
|
build:
|
|
|
|
context: ./image/
|
|
|
|
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-28 19:33:50 +00:00
|
|
|
TS_HOSTNAME: ${TS_HOSTNAME:-ts-docker}
|
2023-12-29 18:05:47 +00:00
|
|
|
TS_STATEDIR: "/var/lib/tailscale/" # store ts state in a local volume
|
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 15:48:11 +00:00
|
|
|
TS_FUNNEL_PORT: ${TS_FUNNEL_PORT:-} # optional port to publish publicly with tailscale funnel (ex: '80')
|
2023-12-28 19:33:50 +00:00
|
|
|
volumes:
|
|
|
|
- ./ts_data:/var/lib/tailscale/
|
|
|
|
myservice:
|
|
|
|
image: nginxdemos/hello
|
|
|
|
network_mode: "service:tailscale"
|