-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.yml
29 lines (27 loc) · 948 Bytes
/
docker-compose.yml
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
version: '3'
services:
tailscale-derp:
container_name: tailscale-derp
image: tailscale-derp-docker:1.0
hostname: ${TAILSCALE_DERP_HOSTNAME}
volumes:
- /lib/modules:/lib/modules:ro
- $PWD/certs:/root/derper/${TAILSCALE_DERP_HOSTNAME}
- $PWD/config:/var/lib/tailscale
cap_add:
- NET_ADMIN
- NET_RAW
environment:
- TAILSCALE_DERP_HOSTNAME=${TAILSCALE_DERP_HOSTNAME}
- TAILSCALE_DERP_VERIFY_CLIENTS=${TAILSCALE_DERP_VERIFY_CLIENTS}
- TAILSCALE_DERP_CERTMODE=${TAILSCALE_DERP_CERTMODE}
- TAILSCALE_AUTH_KEY=${TAILSCALE_AUTH_KEY}
ports:
- 80:80/tcp
- 443:443/tcp
- 3478:3478/udp
#Uncomment only if you aren't running tailscaled on the host system otherwise it will error
#- 41641:41641/udp
restart: unless-stopped
devices:
- /dev/net/tun:/dev/net/tun