Files
Yodmon/docker-compose.yml
Christoph Gasser 2695379589 Add Zabbix API token authentication support
ZABBIX_API_TOKEN env var can now be used instead of ZABBIX_USER +
ZABBIX_PASSWORD. When set, the token is passed directly as the auth
value in JSON-RPC calls and no login/logout session is created.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 10:07:47 +02:00

43 lines
2.1 KiB
YAML

version: '3.8'
services:
yodmon:
build: .
container_name: yodmon_qwe
restart: unless-stopped
ports:
- "161:161/udp" # SNMP — polled by Zabbix every minute
- "8088:8080" # Web UI
volumes:
- yodmon_qwe_data:/data
environment:
# ── Yodeck ────────────────────────────────────────────────────────────
YODECK_API_TOKEN: "yodeck:fXQKm1hLvJY88necL3GiLVntpmyNS5BpKp8MpDK8GH2UvCPrg8BeHwpBSQaEtF0q"
YODECK_POLL_INTERVAL_MINUTES: "10"
# ── SNMP ──────────────────────────────────────────────────────────────
SNMP_COMMUNITY: "public"
# Private Enterprise Number OID for this application.
# All player data is served under this subtree.
ENTERPRISE_OID: ".1.3.6.1.4.1.99999"
# ── Network ───────────────────────────────────────────────────────────
# IP address (or hostname) of THIS host, reachable by the Zabbix server.
# Zabbix will send SNMP polls to this address on port 161.
APP_HOST: "10.16.2.20" # ← change to your actual host IP
# ── Zabbix API (optional) ─────────────────────────────────────────────
# Leave ZABBIX_URL empty to disable automatic host management.
# Requires Zabbix 5.4+.
ZABBIX_URL: "https://monitor.stranto.com"
# Use an API token (preferred) OR user + password — not both.
# Create token in Zabbix: Administration → API tokens → Create API token
ZABBIX_API_TOKEN: ""
ZABBIX_USER: "odmon"
ZABBIX_PASSWORD: "lk09u834ojnaslvnjh09u34g"
ZABBIX_HOST_GROUP: "Yodeck Players"
ZABBIX_SNMP_COMMUNITY: "public"
volumes:
yodmon_qwe_data: