Skip to content
Snippets Groups Projects
Michal Krejčí's avatar
Amélie Lilith Krejčí authored
Deployment and config info
04031b7a
History

opera-dns-ui

A self contained docker image with php-fpm & caddy for Opera's PowerDNS Admin UI

This image is intended to be used behind some form of reverse proxy responsible for Authentication. The proxy should set an X-Forwarded-User header with the authenticated username for the application. (the application's support for PHP authentication has been enabled, LDAP disabled).

An initial user is created during database initialisation by the application, specified by the ADMIN_USER environment variable.

Environment variables:

Variable Name Default Description
ADMIN_USER admin Initial admin username for DNS UI
MAIL_SERVER smtp SMTP mail server hostname for outgoing mail
POSTGRES_HOST postgres Postgresql database host
POSTGRES_PORT 5432 Postgresql database port
POSTGRES_DB dnsui Database name
POSTGRES_USER dnsui Database user/role
POSTGRES_PASSWORD dnsui Database password
PDNS_API_HOST 172.17.0.1 PowerDNS API host
PDNS_API_PORT 8081 PowerDNS API Port
PDNS_API_KEY change PowerDNS API key

Deployment

Recommended via the enclosed docker-compose.yml file.

Config file

Settings available via environment variables (above) should be configured that way. Other options can be set up directly in the config file. Mount the config file to /srv/dns-ui/config/config.ini.orig and the container will load it and insert the environment variables each time the it will start.