website: demo household and the admin screenshots it produced

This commit is contained in:
2026-10-20 09:57:49 +02:00
parent 4ef795a8a9
commit 2697adfa27
27 changed files with 805 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
# Starts nxdns on the demo LAN, importing etc/config.zon into a fresh nxdemo-data volume on the
# first run. nxdns keeps the image's own uid 65532: under a host uid it was signalled from outside
# docker twice. The data lives in a named volume so no file in this tree is owned by that uid.
set -eu
DEMO=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
IMAGE=${NXDNS_IMAGE:-git.mial.net/mokhtar/nxdns:0.0.21}
docker network inspect nxdemo-lan >/dev/null 2>&1 ||
docker network create --driver bridge --subnet 192.168.50.0/24 --gateway 192.168.50.1 nxdemo-lan
if ! docker volume inspect nxdemo-data >/dev/null 2>&1; then
docker volume create nxdemo-data >/dev/null
docker run --rm -v "$DEMO/etc:/etc/nxdns:ro" -v nxdemo-data:/var/lib/nxdns "$IMAGE" import /etc/nxdns/config.zon
fi
docker run -d --name nxdemo-nxdns --restart unless-stopped \
--network nxdemo-lan --ip 192.168.50.2 --sysctl net.ipv4.ip_unprivileged_port_start=0 \
-p 127.0.0.1:18080:8080 -v nxdemo-data:/var/lib/nxdns "$IMAGE" run