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 utf8mb4 database holding the plugin's <prefix>records table. The application never creates or alters it.
  • A dedicated database user with the least-privilege grants listed in the source README. DB_TABLE_PREFIX must match the plugin's table_prefix.

Usage

cp env.example .env
# edit .env
docker compose up -d

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 COREDNS_WEBUI_VERSION in .env, then:

docker compose pull
docker compose up -d
S
Description
No description provided
Readme MIT
38 KiB
0 Stars 1 Watchers 0 Forks