Pi-hole and cloudflared in Docker via
docker-compose
Assuming you have Docker installed...
- Clone this repo:
git clone https://github.com/thegreatsunra/pihole-cloudflared-docker.git
cd pihole-cloudflared-docker
2: Set up internal network:
Change the --subnet
and --gateway
values to match the configuration of your own network.
sudo docker network create -d macvlan \
--subnet=192.168.2.0/24 \
--gateway=192.168.2.1 \
-o parent=eth0 priv_lan
TODO: Configure this internal network via docker-compose.yml
-
Copy
./example.env
to./.env
and update the variable values it contains as suits your purposes. -
From the project root, run the whole thing:
docker-compose -p pihole up -d
- Change the Pi-hole admin console password:
sudo docker exec -it pihole pihole -a -p
Update Pi-hole Gravity
sudo docker exec -it pihole pihole -g
MIT