chriscrowe / docker-pihole-unbound

Run Pi-Hole + Unbound on Docker
1.08k stars 282 forks source link

Issue migrating to Version 3.4 #87

Closed alexthecamel closed 2 years ago

alexthecamel commented 2 years ago

Hi, a little new to Docker so please be gentle!

When using the provided V2 sample, everything works perfectly, so I'm pretty sure there is an issue in my translation to 3.4 I wish to include this in a stack so have to convert (or somehow other trigger the V2.yml?).

Everything appears to start up fine and can open the /admin interface, but it allows me full access without ever asking for the password, and any attempt to change settings results in:

PHP error (2): parse_ini_file(/etc/pihole/setupVars.conf): failed to open stream: Permission denied in /var/www/html/admin/settings.php:12

I'm presuming it's related to my volume mapping, and have tried everything I can think off in terms of syntax adjustment. I've also tried entering values directly instead of using the .env but the same result. A kick in the right direction would be much appreciated.

docker-compose as follows:

version: '3.4'

services: pihole: container_name: pihole image: cbcrowe/pihole-unbound hostname: ${HOSTNAME} domainname: ${DOMAIN_NAME} cap_add:

alexthecamel commented 2 years ago

Solved: Cause was I'm an idiot. Volume was in a subfolder with differing permissions. Leaving my .yml should it be of any use to anyone else.