Skip to content

Commit ce095fe

Browse files
authored
fix: fixed permissions in pDNS container (#972)
1 parent 81797d5 commit ce095fe

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.package/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,8 @@ services:
426426
- 8083
427427
- 53/udp
428428
- 53/tcp
429+
entrypoint: sh -c "chown 0:0 /etc/powerdns/recursor.d &&
430+
exec /usr/bin/tini -- /usr/local/sbin/pdns_recursor-startup"
429431
volumes:
430432
- ./recursor.conf:/etc/powerdns/recursor.conf
431433
- forward_zones:/etc/powerdns/recursor.d/

docker-compose.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ services:
572572
pdnsdist:
573573
image: powerdns/dnsdist-19:1.9.11
574574
container_name: pdnsdist
575+
user: "0:0"
575576
networks:
576577
md_net:
577578
ipv4_address: 172.20.0.201
@@ -588,13 +589,16 @@ services:
588589
pdns_recursor:
589590
image: powerdns/pdns-recursor-51:5.1.7
590591
container_name: pdns_recursor
592+
user: "0:0"
591593
networks:
592594
md_net:
593595
ipv4_address: 172.20.0.200
594596
expose:
595597
- 8083
596598
- 53/udp
597599
- 53/tcp
600+
entrypoint: sh -c "chown 0:0 /etc/powerdns/recursor.d &&
601+
exec /usr/bin/tini -- /usr/local/sbin/pdns_recursor-startup"
598602
volumes:
599603
- ./.package/recursor.conf:/etc/powerdns/recursor.conf
600604
- forward_zones:/etc/powerdns/recursor.d/

0 commit comments

Comments
 (0)