The example docker compose file in the documentation has 2 directories that need to be mapped, /etc/dsnmasq.d and /etc/pihole. I have them both mapped in the /opt folder where I store all my docker containers. I can see the contencts of t/dsnmasq.d but not the /pihole directory. I dont know if it is saving the files somwhere else but if so I can't find them.
The reason I would like to access the files is toedit the lighttpd/external.conf file to allow for iFrames so I can use docker remotely through homeassistant.
Here is my docker-compose config:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "192.168.1.68:53:53/tcp"
- "192.168.1.68:53:53/udp"
- "80:80/tcp"
environment:
TZ: 'America/Chicago'
WEBPASSWORD: Evrito1998@18
# Volumes store your data between container upgrades
volumes:
- /opt/pihole:/etc/pihole
- /opt/pihole/dnsmasq.d:/etc/dnsmasq.d
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
restart: unless-stopped