Featured image of post nezha安装备份

nezha安装备份

nezha安装备份

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
Licensed under CC BY-NC-SA 4.0
最后更新于 Oct 20, 2024 00:00 UTC
comments powered by Disqus
使用 Hugo 构建
主题 StackJimmy 设计