Created
July 22, 2018 15:20
-
-
Save ties/c6ad982a655dd1c3cf527f125e438643 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
# | |
# Config for powerdns is saved in /opt/powerdns/ | |
# | |
# Take pdns.conf from https://raw.githubusercontent.com/psi-4ward/docker-powerdns/master/pdns.conf | |
# and create /opt/powerdns/pdns/conf.d/api.conf with | |
# | |
# api=yes | |
# api-key=6d238bb754ffe84d9b1fdc967cb16a546ea7a32cdd2438497912137440bd0c75 | |
# webserver-address=0.0.0.0 | |
# webserver-allow-from=0.0.0.0/0 | |
services: | |
pdns-mariadb: | |
image: mariadb:10.3 | |
restart: always | |
networks: | |
dns: | |
ipv4_address: 172.26.0.3 | |
environment: | |
- MYSQL_ROOT_PASSWORD=CHANGEME | |
volumes: | |
- /opt/powerdns/mysql:/var/lib/mysql | |
pdns-pdns: | |
image: psitrax/powerdns | |
networks: | |
dns: | |
ipv4_address: 172.26.0.2 | |
command: --cache-ttl=120 --allow-axfr-ips=127.0.0.1,192.168.0.0/16 | |
volumes: | |
- /opt/powerdns/pdns:/etc/pdns | |
environment: | |
- MYSQL_PASS=CHANGEME | |
- MYSQL_USER=root | |
- MYSQL_HOST=pdns-mariadb | |
ports: | |
- 192.168.1.32:53:53 | |
- 192.168.1.32:53:53/udp | |
pdns-admin-static: | |
image: pschiffe/pdns-admin-static | |
links: | |
- pdns-admin-uwsgi:pdns-admin-uwsgi | |
networks: | |
dns: | |
ipv4_address: 172.26.0.4 | |
ports: | |
- 8082:80 | |
pdns-admin-uwsgi: | |
image: pschiffe/pdns-admin-uwsgi | |
networks: | |
dns: | |
ipv4_address: 172.26.0.5 | |
volumes: | |
- /opt/powerdns/pdns-admin:/opt/powerdns-admin/upload | |
environment: | |
- PDNS_ADMIN_PDNS_STATS_URL='http://pdns-pdns:8081/' | |
- PDNS_ADMIN_PDNS_API_KEY='CHANGEME' | |
- PDNS_ADMIN_SQLA_DB_PASSWORD='CHANGEME' | |
- PDNS_ADMIN_SQLA_DB_USER='root' | |
- PDNS_ADMIN_SQLA_DB_HOST='pdns-mariadb' | |
- PDNS_ADMIN_PDNS_VERSION='4.1.2' | |
networks: | |
dns: | |
driver: bridge | |
ipam: | |
driver: default | |
config: | |
- subnet: 172.26.0.0/16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment