Pi-hole
Network-wide ad blocking via your own Linux hardware The Pi-hole® is a DNS sinkhole that protects your devices from unwanted content, without installing any client-side software.
yaml
docker-compose.yml
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- 53:53/tcp
- 53:53/udp
- 80:80/tcp
- 443:443/tcp
environment:
TZ: Europe/London
FTLCONF_webserver_api_password: correct horse battery staple
FTLCONF_dns_listeningMode: ALL
volumes:
- ./etc-pihole:/etc/pihole
cap_add:
- NET_ADMIN
- SYS_TIME
- SYS_NICE
restart: unless-stopped
.ENV
.env example
# No environment variables detected
deployment
Quick Start
- Create a working directory named after the service.
- Copy the compose file and generated `.env` into that directory.
- Review the variables and replace placeholders with real values.
- Run `docker compose up -d`.
mkdir pihole
cd pihole
# create docker-compose.yml
# create .env
docker compose up -d