2021-01-22 18:13:04 +01:00
|
|
|
version: '2.4'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
pdns-recursor:
|
|
|
|
image: pschiffe/pdns-recursor:${RECURSOR_TAG:-latest}
|
|
|
|
networks:
|
|
|
|
- pdns
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2023-12-17 02:39:45 +01:00
|
|
|
ulimits:
|
|
|
|
nofile:
|
|
|
|
soft: 5000
|
|
|
|
hard: 5000
|
2021-01-22 18:13:04 +01:00
|
|
|
|
|
|
|
mariadb:
|
2023-12-17 02:39:45 +01:00
|
|
|
image: mariadb:11
|
2021-01-22 18:13:04 +01:00
|
|
|
networks:
|
|
|
|
pdns:
|
|
|
|
aliases:
|
|
|
|
- db
|
|
|
|
- mysql
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- mariadb:/var/lib/mysql:z
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=my-secret-pw
|
|
|
|
healthcheck:
|
2023-12-17 02:39:45 +01:00
|
|
|
test: ['CMD', 'healthcheck.sh', '--su=mysql', '--connect', '--innodb_initialized']
|
2021-01-22 18:13:04 +01:00
|
|
|
timeout: 10s
|
|
|
|
retries: 5
|
|
|
|
|
|
|
|
phpmyadmin:
|
2023-01-15 17:06:10 +01:00
|
|
|
image: phpmyadmin:5
|
2021-01-22 18:13:04 +01:00
|
|
|
networks:
|
|
|
|
- pdns
|
|
|
|
ports:
|
|
|
|
- '8988:80'
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
|
|
|
|
pdns-master:
|
|
|
|
image: pschiffe/pdns-mysql:${PDNS_MYSQL_TAG:-latest}
|
|
|
|
hostname: ns1.example.com
|
|
|
|
networks:
|
|
|
|
pdns:
|
|
|
|
ipv4_address: 172.6.0.20
|
|
|
|
aliases:
|
|
|
|
- pdns
|
|
|
|
extra_hosts:
|
|
|
|
- 'ns1.example.com:172.6.0.20'
|
|
|
|
- 'ns2.example.com:172.6.0.21'
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
environment:
|
|
|
|
- PDNS_gmysql_password=my-secret-pw
|
|
|
|
- PDNS_master=yes
|
|
|
|
- PDNS_api=yes
|
|
|
|
- PDNS_api_key=secret
|
|
|
|
- PDNS_webserver=yes
|
|
|
|
- PDNS_webserver_address=0.0.0.0
|
|
|
|
- PDNS_webserver_allow_from=172.6.0.0/16
|
|
|
|
- PDNS_version_string=anonymous
|
|
|
|
- PDNS_default_ttl=1500
|
|
|
|
- PDNS_allow_axfr_ips=172.6.0.21
|
|
|
|
- PDNS_only_notify=172.6.0.21
|
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
|
|
|
|
pdns-slave:
|
|
|
|
image: pschiffe/pdns-mysql:${PDNS_MYSQL_TAG:-latest}
|
|
|
|
hostname: ns2.example.com
|
|
|
|
networks:
|
|
|
|
pdns:
|
|
|
|
ipv4_address: 172.6.0.21
|
|
|
|
extra_hosts:
|
|
|
|
- 'ns1.example.com:172.6.0.20'
|
|
|
|
- 'ns2.example.com:172.6.0.21'
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
environment:
|
|
|
|
- PDNS_gmysql_dbname=powerdnsslave
|
|
|
|
- PDNS_gmysql_password=my-secret-pw
|
|
|
|
- PDNS_slave=yes
|
|
|
|
- PDNS_superslave=yes
|
|
|
|
- PDNS_webserver=yes
|
|
|
|
- PDNS_webserver_address=0.0.0.0
|
|
|
|
- PDNS_webserver_allow_from=172.6.0.0/16
|
|
|
|
- PDNS_version_string=anonymous
|
|
|
|
- PDNS_disable_axfr=yes
|
|
|
|
- PDNS_allow_notify_from=172.6.0.20
|
|
|
|
- SUPERMASTER_IPS=172.6.0.20
|
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
- pdns-master
|
|
|
|
|
|
|
|
pdns-admin-uwsgi:
|
2021-10-06 00:00:38 +02:00
|
|
|
image: pschiffe/pdns-admin-uwsgi
|
2021-01-22 18:13:04 +01:00
|
|
|
networks:
|
|
|
|
pdns:
|
|
|
|
aliases:
|
|
|
|
- pdns-admin-uwsgi
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
environment:
|
2023-12-19 23:12:51 +01:00
|
|
|
- PDNS_ADMIN_SQLA_DB_PASSWORD=my-secret-pw
|
2023-12-17 02:39:45 +01:00
|
|
|
- PDNS_VERSION=4.8
|
2021-01-22 18:13:04 +01:00
|
|
|
- PDNS_API_KEY=secret
|
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
- pdns-master
|
|
|
|
|
|
|
|
pdns-admin-static:
|
2021-10-06 00:00:38 +02:00
|
|
|
image: pschiffe/pdns-admin-static
|
2021-01-22 18:13:04 +01:00
|
|
|
networks:
|
|
|
|
- pdns
|
|
|
|
ports:
|
|
|
|
- '8989:80'
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
depends_on:
|
|
|
|
- pdns-admin-uwsgi
|
|
|
|
|
|
|
|
networks:
|
|
|
|
pdns:
|
|
|
|
ipam:
|
|
|
|
config:
|
|
|
|
- subnet: 172.6.0.0/16
|
|
|
|
gateway: 172.6.0.1
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
mariadb:
|