-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
39 lines (36 loc) · 888 Bytes
/
Copy pathcompose.yaml
File metadata and controls
39 lines (36 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
services:
tailscale:
image: tailscale/tailscale:latest
container_name: tailscale
hostname: ${TS_HOSTNAME:-homelab}
restart: unless-stopped
cap_add:
- net_admin
devices:
- /dev/net/tun:/dev/net/tun
dns:
- 10.0.6.2
- 10.0.6.3
environment:
- TS_AUTHKEY=${TS_AUTHKEY}
- TS_HOSTNAME=${TS_HOSTNAME:-homelab}
- TS_STATE_DIR=/var/lib/tailscale
- TS_USERSPACE=false
- TS_ACCEPT_DNS=false
- TS_EXTRA_ARGS=${TS_EXTRA_ARGS:---advertise-exit-node}
- TS_ROUTES=${TS_ROUTES:-10.0.0.0/20}
volumes:
- tailscale-state:/var/lib/tailscale
networks:
- tailscale-network
volumes:
tailscale-state:
driver: local
driver_opts:
type: none
device: /mnt/SSD/Containers/tailscale
o: bind
networks:
tailscale-network:
name: tailscale-network
driver: bridge