Files
lzwlab_cn/beszel/docker-compose.yml

23 lines
871 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Beszel 服务器监控(hub
# 文档:https://www.beszel.dev/zh/guide/getting-started 与 /hub-installation
# 注意:子路径部署需设置 APP_URL=https://lzwlab.cn/beszelnginx 反代见 lzwlab.nginx.conf
services:
beszel:
image: henrygd/beszel:latest
container_name: beszel
restart: unless-stopped
env_file:
- .env # 服务器 /opt/beszel/.env0600,首次启动时用于创建管理员,之后可清空)
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