1.5 KiB
coredns-web-ui Deployment
Web UI for the zones and records CoreDNS serves through the mysql plugin: source/coredns-web-ui.
It reads and writes the plugin's records table directly and keeps its own tables (users, sessions, delegations, audit) in the same database with the <prefix>webui_ prefix, created by its migrations at startup. It never talks to CoreDNS. It keeps no local state and needs no volume. /health is an unauthenticated liveness check; HSTS is left to Træfik.
Requirements
- MySQL or MariaDB with a
utf8mb4database holding the plugin's<prefix>recordstable. The application never creates or alters it. - A dedicated database user with the least-privilege grants listed in the source README.
CWUI_DB_TABLE_PREFIXmust match the plugin'stable_prefix.
Usage
cp env.example .env
# edit .env
docker compose up -d
CWUI_TRUSTED_PROXIES must cover the Træfik network, otherwise sessions and audit rows record Træfik's address as the client origin.
Create the first admin from the running container, then manage the other users from the web UI:
printf '%s\n' "$PASSWORD" | docker compose exec -T coredns-web-ui /app user add <username> admin
Other CLI commands (user, check, audit, version) run the same way:
docker compose exec coredns-web-ui /app help
Update
Set CWUI_VERSION in .env, then:
docker compose pull
docker compose up -d