# coredns-web-ui Deployment Web UI for the zones and records CoreDNS serves through the `mysql` plugin: [source/coredns-web-ui](https://git.bjphoster.com/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 `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 `records` table. The application never creates or alters it. - A dedicated database user with the least-privilege grants listed in the [source README](https://git.bjphoster.com/source/coredns-web-ui#mysql-grants). `CWUI_DB_TABLE_PREFIX` must match the plugin's `table_prefix`. ## Usage ```sh 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: ```sh printf '%s\n' "$PASSWORD" | docker compose exec -T coredns-web-ui /app user add admin ``` Other CLI commands (`user`, `check`, `audit`, `version`) run the same way: ```sh docker compose exec coredns-web-ui /app help ``` ## Update Set `CWUI_VERSION` in `.env`, then: ```sh docker compose pull docker compose up -d ```