feat: 部署 Beszel 服务器监控(/beszel/ 子路径)并新增首页入口
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# Beszel 服务器监控(hub)
|
||||
# 文档:https://www.beszel.dev/zh/guide/getting-started 与 /hub-installation
|
||||
# 注意:子路径部署需设置 APP_URL=https://lzwlab.cn/beszel,nginx 反代见 lzwlab.nginx.conf
|
||||
services:
|
||||
beszel:
|
||||
image: henrygd/beszel:latest
|
||||
container_name: beszel
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env # 服务器 /opt/beszel/.env(0600,首次启动时用于创建管理员,之后可清空)
|
||||
environment:
|
||||
APP_URL: https://lzwlab.cn/beszel
|
||||
ports:
|
||||
# Web 仅监听本机 127.0.0.1:8092(本机 8090 已被文件快传占用),由 nginx 经 /beszel/ 反代
|
||||
- "127.0.0.1:8092:8090"
|
||||
volumes:
|
||||
- ./beszel_data:/beszel_data
|
||||
healthcheck:
|
||||
test: ['CMD', '/beszel', 'health', '--url', 'http://localhost:8090']
|
||||
interval: 120s
|
||||
start_period: 10s
|
||||
timeout: 5s
|
||||
Reference in New Issue
Block a user