docker build -t yourfavorite/tag .
SECRET_KEY
: Configure the secret key, event if for now, it's not used anywhere in the code.SQLITE_PATH
: default is/powerdns-admin
in the container, you can change that, do not forget to mount the volume in the containerPDNS_APIKEY
: PowerDNS API KEYPDNS_VERSION
: PowerDNS versionPDNS_URL
: URL to reach a PowerDNS instance
docker run -d -p 9393:9393 -v $(PWD):/powerdns-admin -e PDNS_APIKEY=somekey -e PDNS_VERSION=4.0.0 -e PDNS_URL=http://somepowerdnsinstance notuscloud/pdnsadmin-sqlite
version: "3"
services:
pdnsadmin:
image: notuscloud/pdnsadmin-sqlite:latest
ports:
- 9393:9393
volumes:
- your/favorite/path:/powerdns-admin
environment:
PDNS_APIKEY: somekey
PDNS_VERSION: 4.0.0
PDNS_URL: http://somepdnsurl
thanks to ngoduykhanh or it's amazing job: https://github.com/ngoduykhanh/PowerDNS-Admin