A simple Pi-hole docker setup.
Find a file
2024-03-09 18:37:54 +01:00
.gitignore Initial commit 2024-02-11 13:00:41 +01:00
config.env Initial commit 2024-02-11 13:00:41 +01:00
docker-compose.yml Fix volume paths (2nd try) 2024-03-09 18:37:54 +01:00
passwd.env.example Change filename 2024-02-11 13:02:00 +01:00
pihole.sh Initial commit 2024-02-11 13:00:41 +01:00
README.md Add resolved.conf 2024-03-09 13:11:14 +01:00
resolved.conf Add resolved.conf 2024-03-09 13:11:14 +01:00

pihole-docker

This is a simple Pi-hole docker setup.

Installing

git clone https://git.staropensource.de/JeremyStarTM/pihole-docker.git pihole
cd pihole
cp passwd.env.example passwd.env
$EDITOR passwd.env

Maintenance

Starting

docker compose up -d

Stopping

docker compose down

Restarting

docker compose restart

Accessing pihole-cli

./pihole.sh

Networking

  • Listen address: 127.0.0.1
  • Ports
    • Web: 8999
    • DNS: 53

systemd-resolved

If you use systemd-resolved (default on Arch Linux) you can use this command to apply a premade configuration file:

cp resolved.conf /etc/systemd/resolved.conf
systemctl restart systemd-resolved
resolvectl flush-caches

License

It's in the public domain.