-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
46 lines (43 loc) · 1.08 KB
/
docker-compose.yml
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
version: '3.7'
networks:
internal:
ipam:
config:
- subnet: 172.20.53.0/24
driver_opts:
com.docker.network.driver.mtu: 4096
services:
auth:
build:
context: pdns
dockerfile: Dockerfile-auth
user: root
volumes:
- ./auth.conf:/etc/powerdns/pdns.d/auth.conf
environment:
- PDNS_AUTH_API_KEY='insecure'
ports:
- "${PUBLIC_TCP_UDP_PORT_AUTH:-5301}:53/tcp"
- "${PUBLIC_TCP_UDP_PORT_AUTH:-5301}:53/udp"
- "127.0.0.1:5391:8081/tcp"
networks:
internal:
ipv4_address: 172.20.53.101
recursor:
build:
context: pdns
dockerfile: Dockerfile-recursor
user: root
volumes:
- ./recursor.conf:/etc/powerdns/recursor.d/recursor.conf
- ./recursor.lua:/etc/powerdns/recursor.lua
environment:
- PDNS_RECURSOR_API_KEY='insecure'
- DESEC_DOMAIN
ports:
- "${PUBLIC_TCP_UDP_PORT_RECURSOR:-5302}:53/tcp"
- "${PUBLIC_TCP_UDP_PORT_RECURSOR:-5302}:53/udp"
- "127.0.0.1:5392:8082/tcp"
networks:
internal:
ipv4_address: 172.20.53.102