Refactor bot and integrate services
This commit is contained in:
31
config.example.yaml
Normal file
31
config.example.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
telegram:
|
||||
token: "YOUR_TELEGRAM_BOT_TOKEN"
|
||||
admin_id: 123456789
|
||||
|
||||
paths:
|
||||
# JSON state file for artifacts
|
||||
artifact_state: "/opt/tg-bot/state.json"
|
||||
# Optional env file with RESTIC_* variables
|
||||
restic_env: "/etc/restic/restic.env"
|
||||
|
||||
thresholds:
|
||||
disk_warn: 80
|
||||
load_warn: 2.0
|
||||
|
||||
docker:
|
||||
# If true, discover containers by name/label
|
||||
autodiscovery: true
|
||||
# Enable docker watchdog notifications
|
||||
watchdog: true
|
||||
# Optional label filter: "key=value"
|
||||
label: ""
|
||||
# Name substrings used for discovery
|
||||
match:
|
||||
- "tg-"
|
||||
- "bot"
|
||||
# Alias -> real container name (overrides autodiscovery)
|
||||
aliases:
|
||||
tg-admin-bot: "tg-admin-bot"
|
||||
# Explicit list used by legacy modules
|
||||
containers:
|
||||
tg-admin-bot: "tg-admin-bot"
|
||||
Reference in New Issue
Block a user