24 lines
642 B
YAML
24 lines
642 B
YAML
# https://tailscale.com/kb/1282/docker
|
|
version: "3.7"
|
|
services:
|
|
tailscale-nginx:
|
|
image: tailscale/tailscale:latest
|
|
hostname: tailscale-nginx
|
|
environment:
|
|
- TS_AUTHKEY=tskey-client-notAReal-OAuthClientSecret1Atawk
|
|
- TS_EXTRA_ARGS=--advertise-tags=tag:container
|
|
- TS_STATE_DIR=/var/lib/tailscale
|
|
- TS_USERSPACE=false
|
|
volumes:
|
|
- ${PWD}/tailscale-nginx/state:/var/lib/tailscale
|
|
- /dev/net/tun:/dev/net/tun
|
|
cap_add:
|
|
- net_admin
|
|
- sys_module
|
|
restart: unless-stopped
|
|
nginx:
|
|
image: nginx
|
|
depends_on:
|
|
- tailscale-nginx
|
|
network_mode: service:tailscale-nginx
|