Initial commit: Headscale management scripts and configuration

- Add headscale binary and configuration files
- Include management scripts for API keys, nodes, and authentication
- Add Docker setup with docker-compose
- Include backup and restore functionality
- Add example scripts for creating API keys and pre-auth keys

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-03-24 10:08:28 +08:00
commit 1410ba6630
15 changed files with 744 additions and 0 deletions

22
docker-compose.yml Normal file
View File

@@ -0,0 +1,22 @@
services:
headscale:
image: headscale/headscale:latest
container_name: headscale
volumes:
- ./config:/etc/headscale
- ./data:/var/lib/headscale
ports:
- "8080:8080"
- "9090:9090"
- "50443:50443"
command: serve
labels:
- "com.centurylinklabs.watchtower.enable=true"
restart: unless-stopped
networks:
- shared-net
networks:
shared-net:
external: true