Closed troykelly closed 1 year ago
This issue was caused by the environment variables using hyphens, so doubling up when the jinja template is created.
I guess this is more a feature than a bug.
Hi @troykelly, the underscores are translated to hyphens in the template to avoid this kind of issues - https://github.com/pschiffe/docker-pdns/blob/master/pdns-recursor/recursor.conf.tpl So you should be able to do:
environment:
- PDNS_api_key=${PDNS_RECURSOR_API_KEY}
- PDNS_webserver=yes
- PDNS_webserver_address=127.0.0.1
- PDNS_webserver_password=${PDNS_RECURSOR_WEBSERVER_PASSWORD}
- PDNS_webserver_allow_from="::"
- PDNS_local_address="127.0.0.1:953"
- PDNS_local_port=953
And when you define it like this, the defaults from the Dockerfile will be overwritten properly. Now I see what the problem was exactly..
The configuration below get's overridden with the default
0.0.0.0
53
settings. Noting that thelocal-address=0.0.0.0
andlocal-port=53
settings are added to the config file even when those values are supplied by environment variables.