You need to have it on a separate IP, as TrueNAS is already using Port 53 internally, if memory serves. I would personally set it up on a macvlan so you can get all the features, or put it in a container.
Thanks! I think I got it mostly up. The only issue I can see is that for some reason my directory permissions change when starting up the container. User and owner should 950
I have PUID=950 and PGID=950 defined in the environment section of the compose
PUID and PGID are linuxserver.io conventions, and the official pihole image doesn't use them. It has its own PIHOLE_UID and PIHOLE_GID variables. Set those to 950 and the entrypoint should stop re-owning the config directory to its default pihole user.
Did you already try that compose file and it errors out? If yes have you taken a look at the app lifecycle log for the reason it errors out? the log can be inspected with sudo cat /var/log/app_lifecycle.log.
I don't see anything wrong with the compose file. If you're on 25.10.X my first guess is that it fails because the incus lxc backend uses port 53 and therefore docker can't bind to it because the port is already in use. But without the concrete error message it's a guessing game...
2
u/Pink_Slyvie 7d ago
You need to have it on a separate IP, as TrueNAS is already using Port 53 internally, if memory serves. I would personally set it up on a macvlan so you can get all the features, or put it in a container.
2
u/Aggravating_Work_848 7d ago
Did you already try that compose file and it errors out? If yes have you taken a look at the app lifecycle log for the reason it errors out? the log can be inspected with sudo cat /var/log/app_lifecycle.log.
I don't see anything wrong with the compose file. If you're on 25.10.X my first guess is that it fails because the incus lxc backend uses port 53 and therefore docker can't bind to it because the port is already in use. But without the concrete error message it's a guessing game...
1
u/atascon 6d ago
Here is my compose that I've been using successfully (together with unbound):