From 97d8ed7a1415bc4cb43ddf46bfb3bcb85e3ec421 Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Mon, 13 Jun 2022 10:53:10 -0300 Subject: [PATCH] Updated docker-compose file --- docker-compose.yml | 63 ++++++++++++++++++++++++++-------------------- 1 file changed, 36 insertions(+), 27 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7b50aee..33d9b3e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,28 +1,37 @@ -pdns: - #build: pdns - image: interlegis/powerdns:4.4.0 - links: - - "mysql:mysql" - ports: - - "53:53" - - "53:53/udp" - - "8088:8081" - environment: - - PDNSCONF_API_KEY=a_strong_api_key - - PDNSCONF_DNSUPDATE=yes - - SECALLZONES_CRONJOB=yes +version: "2.1" +services: + pdns: + build: pdns + #image: interlegis/powerdns:4.4.0 + links: + - "mysql:mysql" + ports: + - "53:53" + - "53:53/udp" + - "8088:8081" + environment: + - 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: - image: bitnami/mariadb:10.1.14-r3 - environment: - - MARIADB_ROOT_PASSWORD=mysqlrootpw - - MARIADB_REPLICATION_MODE=master - - MARIADB_REPLICATION_USER=repl_user - - MARIADB_REPLICATION_PASSWORD=repl_password - - MARIADB_DATABASE=pdns - - MARIADB_USER=pdns - - MARIADB_PASSWORD=pdnspw - volumes: - - dnsmasterdb:/bitnami/mariadb - ports: - - 3306:3306 + mysql: + image: bitnami/mariadb:10.7.4-debian-11-r1 + environment: + - MARIADB_ROOT_PASSWORD=mysqlrootpw + - MARIADB_REPLICATION_MODE=master + - MARIADB_REPLICATION_USER=repl_user + - MARIADB_REPLICATION_PASSWORD=repl_password + - MARIADB_DATABASE=pdns + - MARIADB_USER=pdns + - MARIADB_PASSWORD=pdnspw + volumes: + - dnsmasterdb:/bitnami/mariadb + ports: + - 3306:3306 + +volumes: + dnsmasterdb: + driver: local