archive
This commit is contained in:
30
pihole/Dockerfile
Executable file
30
pihole/Dockerfile
Executable file
@@ -0,0 +1,30 @@
|
||||
FROM pihole/pihole:latest
|
||||
|
||||
RUN echo "addn-hosts=/mnt/lan.list" >> /etc/dnsmasq.d/02-lan.conf
|
||||
#RUN echo "192.168.0.86 vpntor.scratch.home" >> /mnt/lan.list \
|
||||
# && echo "192.168.0.86 syncthing.scratch.home" >> /mnt/lan.list \
|
||||
# && echo "192.168.0.86 plex.scratch.home" >> /mnt/lan.list \
|
||||
# && echo "192.168.0.86 firefly.scratch.home" >> /mnt/lan.list \
|
||||
# && echo "192.168.0.86 firefly2.scratch.home" >> /mnt/lan.list \
|
||||
# && echo "192.168.0.86 rssmon2.scratch.home" >> /mnt/lan.list \
|
||||
# && echo "192.168.0.86 rssmon.scratch.home" >> /mnt/lan.list \
|
||||
# && echo "192.168.0.86 redirector.scratch.home" >> /mnt/lan.list \
|
||||
# && echo "192.168.0.86 ytubespdrun.scratch.home" >> /mnt/lan.list \
|
||||
# && echo "192.168.0.86 vpntorfeed.scratch.home" >> /mnt/lan.list \
|
||||
# && echo "192.168.0.86 stuncaddsies.scratch.home" >> /mnt/lan.list \
|
||||
# && echo "192.168.0.86 stuncaddsiesi.scratch.home" >> /mnt/lan.list \
|
||||
# && echo "192.168.0.86 fproxy.scratch.home" >> /mnt/lan.list \
|
||||
|
||||
RUN echo 'nameserver 127.0.0.1' >> /etc/resolv.conf \
|
||||
&& echo 'nameserver 1.1.1.1' >> /etc/resolv.conf \
|
||||
&& echo 'nameserver 8.8.8.8' >> /etc/resolv.conf \
|
||||
&& echo 'nameserver 8.8.4.4' >> /etc/resolv.conf
|
||||
|
||||
RUN echo "address=/scratch.com/192.168.0.86" >> /etc/dnsmasq.d/03-wildlan.conf
|
||||
|
||||
ENV WEB_PORT=8888
|
||||
ENV DNSMASQ_LISTENING=all
|
||||
ENV WEBPASSWORD=letme123in
|
||||
ENV ServerIP=192.168.0.86
|
||||
ENV DNS1=1.1.1.1
|
||||
ENV DNS2=8.8.8.8
|
||||
11
pihole/build.sh
Executable file
11
pihole/build.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#! /bin/bash
|
||||
|
||||
docker build -t dev:dev .
|
||||
docker run --rm -it --net=host \
|
||||
--dns 127.0.0.1 \
|
||||
--dns 1.1.1.1 \
|
||||
--dns 8.8.8.8 \
|
||||
--dns 8.8.4.4 \
|
||||
-e ServerIP=192.168.0.18 \
|
||||
dev:dev
|
||||
#--restart=unless-stopped \
|
||||
4
pihole/resolv.conf
Executable file
4
pihole/resolv.conf
Executable file
@@ -0,0 +1,4 @@
|
||||
nameserver 127.0.0.1
|
||||
nameserver 1.1.1.1
|
||||
nameserver 8.8.8.8
|
||||
nameserver 8.8.4.4
|
||||
Reference in New Issue
Block a user