├── config
│ ├── config.yaml
│ └── derp.yaml
├── data
├── docker-compose.yml
└── config.yaml # Headplane配置文件
services:
headscale:
container_name: headscale
image: headscale/headscale:latest
restart: unless-stopped
ports:
- 9080:8080
- 9090:9090
volumes:
- ./config:/etc/headscale
- ./data:/var/lib/headscale
environment:
- TZ=Asia/Shanghai
command: serve
headplane:
container_name: headplane
image: ghcr.io/tale/headplane:latest
restart: unless-stopped
volumes:
- "./config:/etc/headscale"
- "./config.yaml:/etc/headplane/config.yaml"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
ports:
- '3000:3000'
1、创建映射目录以及文件夹。
2、防火墙放行端口,比如 9080 9090 3000,如若上述端口已被其它应用占用,可以改用其它未使用的端口。