哪吒面板

开源、轻量、易用的服务器监控与运维工具

开源地址

文档地址

快速启动

version: "3.9"

services:
  dashboard:
    image: registry.cn-shanghai.aliyuncs.com/naibahq/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:
      - '8008:80'
      - '5555:5555'

配置

需修改配置文件中尖括号的配置(data/config.yaml)

AvgPingCount: 2
Cover: 0
DDNS:
  AccessID: ""
  AccessSecret: ""
  Enable: false
  MaxRetries: 3
  Profiles:
    example:
      AccessID: ""
      AccessSecret: ""
      Provider: ""
      WebhookHeaders: ""
      WebhookMethod: ""
      WebhookRequestBody: ""
      WebhookURL: ""
  Provider: webhook
  WebhookHeaders: ""
  WebhookMethod: ""
  WebhookRequestBody: ""
  WebhookURL: ""
Debug: false
DisableSwitchTemplateInFrontend: false
EnableIPChangeNotification: false
EnablePlainIPInNotification: false
GRPCHost: <server ip>
GRPCPort: 5555
HTTPPort: 80
IPChangeNotificationTag: default
IgnoredIPNotification: ""
IgnoredIPNotificationServerIDs: {}
Language: zh-CN
Location: Asia/Shanghai
MaxTCPPingValue: 1000
Oauth2:
  Admin: <github name>
  AdminGroups: ""
  ClientID: <github ClientID>
  ClientSecret: <github ClientSecret>
  Endpoint: ""
  OidcAutoCreate: false
  OidcAutoLogin: false
  OidcDisplayName: OIDC
  OidcGroupClaim: groups
  OidcIssuer: ""
  OidcLoginClaim: sub
  OidcLogoutURL: ""
  OidcRegisterURL: ""
  OidcScopes: openid,profile,email
  Type: github
ProxyGRPCPort: 0
Site:
  Brand: 哪吒监控
  CookieName: nezha-dashboard
  CustomCode: ""
  CustomCodeDashboard: ""
  DashboardTheme: default
  Theme: default
  ViewPassword: ""
TLS: false