-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (49 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
networks:
mariadb-net:
name: mariadb-net
attachable: true
powerdns-net:
name: powerdns-net
volumes:
mysqldb:
name: mysqldb
poweradmin:
name: poweradmin
services:
mariadb:
image: mariadb
volumes:
- mysqldb:/var/lib/mysql
networks:
- mariadb
environment:
- MYSQL_ROOT_PASSWORD=root_pass
- MYSQL_DATABASE=pdns_db
- MYSQL_USER=pdns_user
- MYSQL_PASSWORD=pdns_pass
powerdns:
image: ghcr.io/rootshell-coder/powerdns:4.0.4
volumes:
- poweradmin:/var/www/html/poweradmin/
environment:
PDNS_CONF: |
launch=gmysql
gmysql-host=mariadb
gmysql-port=3306
gmysql-dbname=pdns_db
gmysql-user=pdns_user
gmysql-password=pdns_pass
gmysql-dnssec=yes
allow-axfr-ips=127.0.0.1,::1
local-address=0.0.0.0
primary=no
secondary=no
allow-dnsupdate-from=127.0.0.1,::1
networks:
- mariadb-net
- powerdns-net
ports:
- 80:80/TCP
- 53:53/TCP
- 53:53/UDP