From 7b25a525c5baff70cd054c2b13bf91eed52d6e72 Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Mon, 17 Oct 2016 11:58:30 -0200 Subject: [PATCH] Updated README and docker-compose example --- README.md | 18 ++++++++++++++++-- docker-compose.yml | 26 ++++++++++++++++++-------- 2 files changed, 34 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 5e92431..9267671 100644 --- a/README.md +++ b/README.md @@ -25,12 +25,18 @@ Save the following snippet as docker-compose.yaml in any folder you like, or clo ``` pdns: - image: interlegis/powerdns + image: interlegis/powerdns:4.0.1-1 links: - "mysql:mysql" ports: - "53:53" - "53:53/udp" + - "8088:8081" + environment: + - PDNSCONF_API_KEY=a_strong_api_key + - PDNSCONF_MASTER=yes + - PDNSCONF_DEFAULT_SOA_NAME=dnsserver.domain.com + mysql: image: mysql environment: @@ -46,6 +52,15 @@ Any setting from https://doc.powerdns.com/3/authoritative/settings/ is supported ``` allow-axfr-ips ===> PDNS_ALLOW_AXFR_IPS ``` +### Additional Environment Variables: + + - SECALLZONES_CRONJOB: If set to 'yes', a Cron Job every half hour checks if any domain is not DNSSEC enabled. If so, it enables DNSSEC for that zone and fixes any DS records in parent zones hosted in the same server. + +## Clustering + +You can easily enable PowerDNS native "slaves" with bitnami/mariadb docker image. +See + ## Running ``` @@ -56,4 +71,3 @@ docker-compose up -d ## Contributing Pull requests welcome! - diff --git a/docker-compose.yml b/docker-compose.yml index a127b46..b5339e6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,17 +1,27 @@ pdns: - image: interlegis/powerdns + #build: pdns + image: interlegis/powerdns:4.0.1-1 links: - "mysql:mysql" ports: - "53:53" - "53:53/udp" - #environment: - # - PDNS_RECURSIVE_CACHE_TTL=10 + - "8088:8081" + environment: + - PDNSCONF_API_KEY=a_strong_api_key + - PDNSCONF_MASTER=yes + - PDNSCONF_DEFAULT_SOA_NAME=dnsserver.domain.com + - PDNSCONF_DNSUPDATE=yes + - SECALLZONES_CRONJOB=yes + mysql: - image: mysql + image: bitnami/mariadb:latest environment: - - MYSQL_ROOT_PASSWORD=mysqlrootpw - - MYSQL_DATABASE=pdns - - MYSQL_USER=pdns - - MYSQL_PASSWORD=pdnspw + - MARIADB_ROOT_PASSWORD=mysqlrootpw + - MARIADB_REPLICATION_MODE=master + - MARIADB_REPLICATION_USER=repl_user + - MARIADB_REPLICATION_PASSWORD=repl_password + - MARIADB_DATABASE=pdns + - MARIADB_USER=pdns + - MARIADB_PASSWORD=pdnspw