Browse Source

Updated PowerDNS to version 4.4.0 and Debian Buster

pull/4/head 4.4.0
Fábio Kaiser Rauber 4 years ago
parent
commit
9a55e91103
  1. 11
      docker-compose.yml
  2. 11
      pdns/Dockerfile
  3. 2
      pdns/pdns.list

11
docker-compose.yml

@ -1,6 +1,6 @@
pdns: pdns:
#build: pdns #build: pdns
image: interlegis/powerdns:4.0.1-1 image: interlegis/powerdns:4.4.0
links: links:
- "mysql:mysql" - "mysql:mysql"
ports: ports:
@ -9,13 +9,11 @@ pdns:
- "8088:8081" - "8088:8081"
environment: environment:
- PDNSCONF_API_KEY=a_strong_api_key - PDNSCONF_API_KEY=a_strong_api_key
- PDNSCONF_MASTER=yes
- PDNSCONF_DEFAULT_SOA_NAME=dnsserver.domain.com
- PDNSCONF_DNSUPDATE=yes - PDNSCONF_DNSUPDATE=yes
- SECALLZONES_CRONJOB=yes - SECALLZONES_CRONJOB=yes
mysql: mysql:
image: bitnami/mariadb:latest image: bitnami/mariadb:10.1.14-r3
environment: environment:
- MARIADB_ROOT_PASSWORD=mysqlrootpw - MARIADB_ROOT_PASSWORD=mysqlrootpw
- MARIADB_REPLICATION_MODE=master - MARIADB_REPLICATION_MODE=master
@ -24,4 +22,7 @@ mysql:
- MARIADB_DATABASE=pdns - MARIADB_DATABASE=pdns
- MARIADB_USER=pdns - MARIADB_USER=pdns
- MARIADB_PASSWORD=pdnspw - MARIADB_PASSWORD=pdnspw
volumes:
- dnsmasterdb:/bitnami/mariadb
ports:
- 3306:3306

11
pdns/Dockerfile

@ -1,4 +1,4 @@
FROM debian:stretch-slim FROM debian:buster
MAINTAINER Fabio Rauber <fabiorauber@gmail.com> MAINTAINER Fabio Rauber <fabiorauber@gmail.com>
@ -12,13 +12,14 @@ ENV PDNSCONF_LAUNCH="gmysql" \
PDNSCONF_API_KEY="" \ PDNSCONF_API_KEY="" \
SECALLZONES_CRONJOB="no" SECALLZONES_CRONJOB="no"
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -q -y curl gnupg && \
curl https://repo.powerdns.com/FD380FBB-pub.asc | apt-key add -
ADD pdns.list /etc/apt/sources.list.d/pdns.list ADD pdns.list /etc/apt/sources.list.d/pdns.list
ADD pdns.preference /etc/apt/preferences.d/pdns ADD pdns.preference /etc/apt/preferences.d/pdns
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -q -y curl gnupg && \ RUN apt-get update && \
curl https://repo.powerdns.com/FD380FBB-pub.asc | apt-key add - && apt-get update DEBIAN_FRONTEND=noninteractive apt-get install -q -y pdns-server pdns-backend-mysql mariadb-client && \
RUN DEBIAN_FRONTEND=noninteractive apt-get install -q -y pdns-server pdns-backend-mysql mysql-client && \
rm /etc/powerdns/pdns.d/*.conf && rm /etc/powerdns/*.conf && \ rm /etc/powerdns/pdns.d/*.conf && rm /etc/powerdns/*.conf && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cron jq && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends cron jq && \
rm /etc/cron.daily/* && \ rm /etc/cron.daily/* && \

2
pdns/pdns.list

@ -1 +1 @@
deb [arch=amd64] http://repo.powerdns.com/debian stretch-auth-44 main deb [arch=amd64] http://repo.powerdns.com/debian buster-auth-44 main

Loading…
Cancel
Save