Browse Source

Updated README and docker-compose example

pull/1/head
Fábio Kaiser Rauber 8 years ago
parent
commit
7b25a525c5
  1. 18
      README.md
  2. 26
      docker-compose.yml

18
README.md

@ -25,12 +25,18 @@ Save the following snippet as docker-compose.yaml in any folder you like, or clo
``` ```
pdns: pdns:
image: interlegis/powerdns image: interlegis/powerdns:4.0.1-1
links: links:
- "mysql:mysql" - "mysql:mysql"
ports: ports:
- "53:53" - "53:53"
- "53:53/udp" - "53:53/udp"
- "8088:8081"
environment:
- PDNSCONF_API_KEY=a_strong_api_key
- PDNSCONF_MASTER=yes
- PDNSCONF_DEFAULT_SOA_NAME=dnsserver.domain.com
mysql: mysql:
image: mysql image: mysql
environment: environment:
@ -46,6 +52,15 @@ Any setting from https://doc.powerdns.com/3/authoritative/settings/ is supported
``` allow-axfr-ips ===> PDNS_ALLOW_AXFR_IPS ``` ``` 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 <https://hub.docker.com/r/bitnami/mariadb>
## Running ## Running
``` ```
@ -56,4 +71,3 @@ docker-compose up -d
## Contributing ## Contributing
Pull requests welcome! Pull requests welcome!

26
docker-compose.yml

@ -1,17 +1,27 @@
pdns: pdns:
image: interlegis/powerdns #build: pdns
image: interlegis/powerdns:4.0.1-1
links: links:
- "mysql:mysql" - "mysql:mysql"
ports: ports:
- "53:53" - "53:53"
- "53:53/udp" - "53:53/udp"
#environment: - "8088:8081"
# - PDNS_RECURSIVE_CACHE_TTL=10 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: mysql:
image: mysql image: bitnami/mariadb:latest
environment: environment:
- MYSQL_ROOT_PASSWORD=mysqlrootpw - MARIADB_ROOT_PASSWORD=mysqlrootpw
- MYSQL_DATABASE=pdns - MARIADB_REPLICATION_MODE=master
- MYSQL_USER=pdns - MARIADB_REPLICATION_USER=repl_user
- MYSQL_PASSWORD=pdnspw - MARIADB_REPLICATION_PASSWORD=repl_password
- MARIADB_DATABASE=pdns
- MARIADB_USER=pdns
- MARIADB_PASSWORD=pdnspw

Loading…
Cancel
Save