/pdns-postgres-docker

Minimalistic Alpine-based PowerDNS image with PostgreSQL backend

Primary LanguageShellMIT LicenseMIT

PowerDNS Docker Image with PostgreSQL Backend

Image Size Docker Stars Docker Pulls Docker Automated build

Minimalistic Alpine-based PowerDNS image with PostgreSQL backend

Features

  • Based on Alpine 3.7 with APK pdns package version 4.1.0-r0
  • PostgreSQL backend only
  • Guardian process enabled with graceful shutdown
  • Convenient configuration via mounting /etc/pdns/conf.d dir, /etc/pdns/pdns.conf file or via command-line arguments
  • Default configuration is adopted to docker environment:
    • API port is changed from 8081 to 80 and exposed
    • Connections to the API webserver are allowed from local docker networks (but webserver itself is not enabled by default)
  • Neither PostgreSQL server itself nor DB initialization are not included, this image is aimed to just run pdns server inside more complex setup using docker-compose or something else

Usage

Basic:

docker run --name pdns \
  --link postgres \
  -p 53:53 -p 53:53/udp \
  procraft/pdns-postgres

With docker-compose and companion db server container (see example docker-compose.yml):

docker-compose up -d