Headroom: homelab capacity dashboard

- FastAPI app med 7 bundled module-typer (proxmox, esxi, truenas, splunk, linux, windows, http-json)
- Multi-instance support: flere instanser af samme modultype med adskilte assets
- Community/Enterprise licensing med admin enterprise-toggle
- Capacity forecasting, trends, what-if simulator, alert policies
- MCP server + LLM copilot integration
- Dockerfile + rune.yaml til Yggdrasil
This commit is contained in:
kristianwind
2026-10-23 22:39:27 +02:00
commit 15bbe02277
49 changed files with 9984 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
HEADROOM_DATA=/data \
HEADROOM_MODULES=/app/modules
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/*
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY app ./app
COPY modules ./modules
COPY ctlpanel-logo ./ctlpanel-logo
RUN mkdir -p /data && chmod 777 /data 2>/dev/null || true
EXPOSE 8787
CMD ["sh", "-c", "exec python -m uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-${WEB_PORT:-${HEADROOM_PORT:-8787}}} --workers 1"]