diff --git a/pihole/README.md b/pihole/README.md new file mode 100644 index 0000000..cfc2c0a --- /dev/null +++ b/pihole/README.md @@ -0,0 +1,4 @@ +# PiHole + +[official website](https://pi-hole.net/) + diff --git a/pihole/docker-compose.yml b/pihole/docker-compose.yml new file mode 100644 index 0000000..734b28f --- /dev/null +++ b/pihole/docker-compose.yml @@ -0,0 +1,22 @@ +services: + pihole: + image: pihole/pihole:latest + restart: unless-stopped + ports: + - "53:53/tcp" # DNS + - "53:53/udp" # DNS + - "80:80/tcp" # Web interface + environment: + TZ: "America/Vancouver" # Set your timezone + WEBPASSWORD: "your_secure_password" + DNS1: "1.1.1.1" # Upstream DNS (Cloudflare) + DNS2: "1.0.0.1" + VIRTUAL_HOST: "pihole.yourdomain.com" # Set your domain if applicable + ServerIP: "your_server_ip" # Set your server's IP address + volumes: + - './etc-pihole:/etc/pihole' + - './etc-dnsmasq:/etc/dnsmasq.d' + cap_add: + - NET_ADMIN + + diff --git a/pihole/sample.env b/pihole/sample.env new file mode 100644 index 0000000..23d19df --- /dev/null +++ b/pihole/sample.env @@ -0,0 +1,3 @@ +VOL_PATH=./data +TZ="America/Vancouver" +COMPOSE_PROJECT_NAME=pihole