- Add services.json: hand-maintained source of truth with 20 public homelab services across 7 categories (edge, observability, media, downloads, ethereum, ai, dev), each with name/url/desc/icon. - Rewrite index.html: Services section rendered client-side from services.json with a tiny up/down status probe (green dot = up, grey = down/unreachable; graceful fallback on CORS/offline). Keep a small Projects section linking the GitHub orgs so the old content is not lost. - Add services grid + status dot styles to styles.css. - Dockerfile: COPY services.json into the nginx html root.
11 lines
382 B
Docker
11 lines
382 B
Docker
FROM nginx:1.27-alpine
|
|
|
|
LABEL org.opencontainers.image.title="ffaerber/homepage" \
|
|
org.opencontainers.image.source="https://git.ffaerber.duckdns.org/ffaerber/homepage"
|
|
|
|
COPY index.html styles.css services.json /usr/share/nginx/html/
|
|
|
|
EXPOSE 80
|
|
|
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
|
CMD wget -qO- http://127.0.0.1/ >/dev/null 2>&1 || exit 1 |