Take Control of Your Network: A Step-by-Step Guide to Installing Pi-hole



1. Set Up Docker

2. Pull the Pi-hole Docker Image

docker pull pihole/pihole
version: "3"
services:
  pihole:
    image: pihole/pihole:latest
    container_name: pihole
    environment:
      TZ: "YOUR_TIMEZONE"
      WEBPASSWORD: "YOUR_PASSWORD"
    volumes:
      - "./pihole:/etc/pihole"
      - "./dnsmasq.d:/etc/dnsmasq.d"
    ports:
      - "80:80"
      - "53:53/tcp"
      - "53:53/udp"
    cap_add:
      - NET_ADMIN
    restart: unless-stopped
docker-compose up -d