Add static homelab dashboard with Docker and nginx setup

This commit is contained in:
2026-09-04 11:22:17 +02:00
commit a168fb3b46
8 changed files with 839 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# Lightweight static host for the homelab dashboard.
# Builds a small nginx image that serves index.html + assets.
FROM nginx:1.27-alpine
# Copy the site (static files only — no build step needed)
COPY index.html style.css script.js /usr/share/nginx/html/
COPY nginx.conf /etc/nginx/conf.d/default.conf
# nginx listens on port 80
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget -q --spider http://127.0.0.1:80/ || exit 1
CMD ["nginx", "-g", "daemon off;"]