psi-4ward / docker-powerdns

PowerDNS Docker Image based on Alpine
106 stars 110 forks source link

enable webserver with flags #14

Closed r6m closed 6 years ago

r6m commented 6 years ago

Hi @psi-4ward. it might be great if there was a flag for enabling webserver. like --webserver=yes or something when running docker.

btw, nice job

psi-4ward commented 6 years ago

There are different ways to configure pdns. In your case it would be a way to use cli flags. If the args starts with -- it gets handed over to pdns so you can use something like

docker run --name powerdns .... psitrax/powerdns --webserver=yes

see https://github.com/psi-4ward/docker-powerdns/blob/master/entrypoint.sh#L51

An other way would be to inject an own pdns.config.

Hope this fits your needs.