Tailscale using Portainer
· 715 B · Text
Raw
version: "3.9"
services:
ts-authkey-test:
image: tailscale/tailscale:latest
container_name: ts-authkey
hostname: authkey
environment:
- TS_AUTHKEY=tskey-auth- Generat YoUrOwNKeY at https://login.tailscale.com/admin/settings/keys
- TS_STATE_DIR=/var/lib/tailscale
- TS_USERSPACE=false
- TS_EXTRA_ARGS=--advertise-exit-node --advertise-routes=192.168.0.0/24 --accept-routes
volumes:
- ./ts-authkey/state:/var/lib/tailscale
- /dev/net/tun:/dev/net/tun
cap_add:
- NET_ADMIN
- SYS_MODULE
restart: unless-stopped
nginx-authkey-test:
image: nginx
container_name: nginx-authkey
ports:
- "80:80"
restart: unless-stopped
1 | version: "3.9" |
2 | services: |
3 | ts-authkey-test: |
4 | image: tailscale/tailscale:latest |
5 | container_name: ts-authkey |
6 | hostname: authkey |
7 | environment: |
8 | - TS_AUTHKEY=tskey-auth- Generat YoUrOwNKeY at https://login.tailscale.com/admin/settings/keys |
9 | - TS_STATE_DIR=/var/lib/tailscale |
10 | - TS_USERSPACE=false |
11 | - TS_EXTRA_ARGS=--advertise-exit-node --advertise-routes=192.168.0.0/24 --accept-routes |
12 | |
13 | volumes: |
14 | - ./ts-authkey/state:/var/lib/tailscale |
15 | - /dev/net/tun:/dev/net/tun |
16 | cap_add: |
17 | - NET_ADMIN |
18 | - SYS_MODULE |
19 | restart: unless-stopped |
20 | nginx-authkey-test: |
21 | image: nginx |
22 | container_name: nginx-authkey |
23 | ports: |
24 | - "80:80" |
25 | restart: unless-stopped |
26 |