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