1、dashboard备份
备份/opt/nezha下的的目录和nezha.sh
新机器上执行nezha.sh,启动dashboard
2、dashboard取消8008开放端口,使用1panel转发
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| cat docker-compose.yaml
version: "3.3"
services:
dashboard:
image: ghcr.io/naiba/nezha-dashboard
restart: always
volumes:
- ./data:/dashboard/data
- ./static-custom/static:/dashboard/resource/static/custom:ro
- ./theme-custom/template:/dashboard/resource/template/theme-custom:ro
- ./dashboard-custom/template:/dashboard/resource/template/dashboard-custom:ro
ports:
- 127.0.0.1:8008:80
- 5555:5555
|