Browse Source

Updated docker-compose file

master
Fábio Kaiser Rauber 3 years ago
parent
commit
97d8ed7a14
  1. 63
      docker-compose.yml

63
docker-compose.yml

@ -1,28 +1,37 @@
pdns: version: "2.1"
#build: pdns services:
image: interlegis/powerdns:4.4.0 pdns:
links: build: pdns
- "mysql:mysql" #image: interlegis/powerdns:4.4.0
ports: links:
- "53:53" - "mysql:mysql"
- "53:53/udp" ports:
- "8088:8081" - "53:53"
environment: - "53:53/udp"
- PDNSCONF_API_KEY=a_strong_api_key - "8088:8081"
- PDNSCONF_DNSUPDATE=yes environment:
- SECALLZONES_CRONJOB=yes - PDNSCONF_API_KEY=a_strong_api_key
- PDNSCONF_DNSUPDATE=yes
- SECALLZONES_CRONJOB=yes
- PDNSCONF_GMYSQL_USER=pdns
- PDNSCONF_GMYSQL_DBNAME=pdns
- PDNSCONF_GMYSQL_PASSWORD=pdnspw
mysql: mysql:
image: bitnami/mariadb:10.1.14-r3 image: bitnami/mariadb:10.7.4-debian-11-r1
environment: environment:
- MARIADB_ROOT_PASSWORD=mysqlrootpw - MARIADB_ROOT_PASSWORD=mysqlrootpw
- MARIADB_REPLICATION_MODE=master - MARIADB_REPLICATION_MODE=master
- MARIADB_REPLICATION_USER=repl_user - MARIADB_REPLICATION_USER=repl_user
- MARIADB_REPLICATION_PASSWORD=repl_password - MARIADB_REPLICATION_PASSWORD=repl_password
- MARIADB_DATABASE=pdns - MARIADB_DATABASE=pdns
- MARIADB_USER=pdns - MARIADB_USER=pdns
- MARIADB_PASSWORD=pdnspw - MARIADB_PASSWORD=pdnspw
volumes: volumes:
- dnsmasterdb:/bitnami/mariadb - dnsmasterdb:/bitnami/mariadb
ports: ports:
- 3306:3306 - 3306:3306
volumes:
dnsmasterdb:
driver: local

Loading…
Cancel
Save