I guess your clients use PiHole? Correct? If yes, you need to add your local domain into PiHole as PiHole is doing your DNS resolution inside your network.
login to PiHole
add your domain phpfpm.local and IP 192.168.178.42
Maybe you need to restart the container.
But why you have installed PiHole and Nginx inside docker? This all could have been done without Docker using dietpi-software catalogue and you cold have saved system resources as there would be no Docker overhead.
Why I installed these inside docker? I thought, if I install PiHole via the software catalogue, I could not use any other software anymore. So I could use Pihole and Nginx and other software on ONE Raspberry Pi with your software catalogue?
So I could use Pihole and Nginx and other software on ONE Raspberry Pi with your software catalogue?
That’s the basic idea of DietPi to have majority of software title working together. You just need to select Nginx as web server preference and PiHole will be installed using Nginx automatically.
Webserver Preference : [Nginx]
On Docker do you forward port 80 to your your PiHole container or to the Nginx container?
On your clients you could check DNS resolution by running nslookup phpfpm.local (on Windows) to check what IP address will be returned.
Well the container is not going to create folder on the host system. You would need to ensure they exist before starting the contain. Something you would need to do yourself.
Still I think using docker is useless overhead. You could run Nginx together with Pihole directly on your DietPi system. Our install script would take care on everything to get both up and running without any user configuration needed. But as you prefer using docker, all configuration steps need to be done by yourself.
What do you mean exactly? You mean our script dietpi-software? Basically it’s going to install request software from official sources and do all needed configuration steps to ensure compatibility between different apps. Basically you could have a look to our online docs. There we describe a little bit our scripts as well as software title. https://dietpi.com/docs/