Update container documentation to reflect disk space adjustments and Docker log management
Expand the root disk size from 35 GB to 50 GB and implement log size limits for Docker containers. Add details about the new monitoring dashboard for homelab services, including deployment instructions and access URL. Ensure clarity on log rotation policies and risks associated with disk space usage.
This commit is contained in:
28
scripts/dashboard/add-to-homepage.sh
Normal file
28
scripts/dashboard/add-to-homepage.sh
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
# Добавить Homelab Dashboard в Homepage (services.yaml на CT 103)
|
||||
# Запуск: с хоста Proxmox — pct exec 103 -- bash -s < /root/scripts/dashboard/add-to-homepage.sh
|
||||
|
||||
set -e
|
||||
|
||||
SERVICES_YAML="${SERVICES_YAML:-/opt/docker/homepage/config/services.yaml}"
|
||||
|
||||
if [ ! -f "$SERVICES_YAML" ]; then
|
||||
echo "ERROR: $SERVICES_YAML not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if grep -q "Homelab Dashboard" "$SERVICES_YAML" 2>/dev/null; then
|
||||
echo "Homelab Dashboard already in services.yaml"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Вставить после блока Netdata (ping: http://192.168.1.150:19999)
|
||||
sed -i '/ping: http:\/\/192.168.1.150:19999$/a\
|
||||
- Homelab Dashboard:\
|
||||
icon: mdi-chart-box\
|
||||
href: http://192.168.1.150:19998\
|
||||
description: Мониторинг хоста, контейнеров, сервисов\
|
||||
target: _blank
|
||||
' "$SERVICES_YAML"
|
||||
|
||||
echo "Added Homelab Dashboard to services.yaml"
|
||||
Reference in New Issue
Block a user