mirror of
https://github.com/jbowdre/tailscale-docker.git
synced 2024-11-27 12:02:18 +00:00
15 lines
561 B
YAML
15 lines
561 B
YAML
services:
|
|
tailscale:
|
|
build:
|
|
context: ./image/
|
|
container_name: tailscale
|
|
environment:
|
|
TS_AUTHKEY: ${TS_AUTHKEY:?err} # from https://login.tailscale.com/admin/settings/authkeys
|
|
TS_HOSTNAME: ${TS_HOSTNAME:-ts-docker}
|
|
TS_STATE: "/var/lib/tailscale/tailscale.state" # store ts state in a local volume
|
|
TS_SERVE_PORT: ${TS_SERVE_PORT:-} # optional port to proxy with tailscale serve (ex: '80')
|
|
volumes:
|
|
- ./ts_data:/var/lib/tailscale/
|
|
myservice:
|
|
image: nginxdemos/hello
|
|
network_mode: "service:tailscale"
|