From 30217b10e2b90d0e7d567d563d9418d442799724 Mon Sep 17 00:00:00 2001 From: Kameron Kenny - pi501 Date: Tue, 19 Aug 2025 15:00:27 -0400 Subject: [PATCH] add whitelisting --- Dockerfile | 2 ++ docker-compose.yml | 6 +++--- etc/pihole/whitelist.list | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 etc/pihole/whitelist.list diff --git a/Dockerfile b/Dockerfile index 6e213b0..8a59071 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,3 +4,5 @@ MAINTAINER Kameron Kenny COPY etc/pihole /etc/pihole COPY etc/dnsmasq.d /etc/dnsmasq.d +RUN for i in $(cat whitelist.list); do pihole -w $i ; done +RUN pihole -g diff --git a/docker-compose.yml b/docker-compose.yml index acdba70..e5f1392 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,7 @@ services: build: dockerfile: Dockerfile container_name: pihole1 - image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole1:250630.0.1 + image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole1:250819.0.1 restart: unless-stopped environment: TZ: 'America/Indianapolis' @@ -36,7 +36,7 @@ services: build: dockerfile: Dockerfile container_name: pihole2 - image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole2:250630.0.1 + image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole2:250819.0.1 restart: unless-stopped environment: TZ: 'America/Indianapolis' @@ -62,7 +62,7 @@ services: build: dockerfile: Dockerfile container_name: pihole3 - image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole3:250630.0.1 + image: docker-registry1.in.thelinuxpro.net:5000/tlp/pihole3:250819.0.1 restart: unless-stopped environment: TZ: 'America/Indianapolis' diff --git a/etc/pihole/whitelist.list b/etc/pihole/whitelist.list new file mode 100644 index 0000000..b9141c3 --- /dev/null +++ b/etc/pihole/whitelist.list @@ -0,0 +1,2 @@ +icloud.com +mask.icloud.com