Using Docker Compose to run Pi-hole and Cloudflare Tunnel Client together to achieve DNS-Over-HTTPS.
Using Docker Compose to run Pi-hole and Cloudflare Tunnel Client together to achieve DNS-Over-HTTPS.
In ./web-password
directory, rename password.sample.txt
to password.txt
Change the content of password.txt
file to set a password for Pi-hole's administrative UI.
Make sure Docker Desktop is running by running the following command in the terminal.
docker --version
It should return something like this
Docker version 20.10.21, build baeda1f
You can change the configuration values of Pi-hole and Cloudflare Tunnel Client in the docker-compose.yml file.
To start run start-pihole.sh
sudo ./start-pihole.sh
This bash script will:
127.0.0.1
) which Pi-hole will run on TCP port 53
Run stop-pihole.sh
sudo ./stop-pihole.sh
Once the Pi-hole docker started, you can access Pi-hole's web admin UI at http://localhost:8061/admin.
Enter a password you set in ./web-password/password.txt
file.
You can check the Upstream DNS Serves settings and you should see it set to Cloudflare Tunnel Client.