Files
Yodmon/Dockerfile
Christoph Gasser 9fc3e97546 Initial commit: Yodmon Yodeck→Zabbix bridge
- Yodeck API poller (every 10 min, paginated, 310 players)
- SQLite persistence (players + activity logs)
- SNMP v2c agent via net-snmp pass_persist
- Zabbix API auto host creation/update (6.0+)
- Flask web dashboard with live player status and log
- Docker deployment with persistent volume
- dev_server.py for local testing without Docker

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

24 lines
466 B
Docker

FROM python:3.11-slim
# Install net-snmp daemon
RUN apt-get update && apt-get install -y --no-install-recommends \
snmpd \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN chmod +x /app/snmp/pass_persist.py /app/entrypoint.sh
# Persistent data lives here (mount a volume to this path)
VOLUME ["/data"]
EXPOSE 161/udp
EXPOSE 8080
ENTRYPOINT ["/app/entrypoint.sh"]