u/Any_Introduction6615

▲ 6 r/pihole

I'm currently using pihole running as a container using Docker Compose.

I usually add the Local DNS records (and CNAME records) for my homelab services using GUI but I want to manage those records inside files so that I can easily update them without using the GUI and probably add it to version control.

I checked and found a way using which I can bind mount the directories like this:

volumes:
 - ./configs/etc-pihole:/etc/pihole
 - ./configs/etc-dnsmasq.d:/etc/dnsmasq.d

But the issue with this approach is all the database files and certificates and other unnecessary files also get written to the ./config directory which I don't want if I back them up or use version control like git.

Is there any alternate way I can cleanly manage them?

reddit.com
u/Any_Introduction6615 — 9 days ago