- 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>
24 lines
466 B
Docker
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"]
|